[wp-cvs] wordpress wp-atom.php, 1.20, 1.21 wp-rss.php, 1.24, 1.25 wp-rss2.php, 1.36, 1.37

Matthew Mullenweg saxmatt at users.sourceforge.net
Mon Feb 14 04:17:14 GMT 2005


Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv991

Modified Files:
	wp-atom.php wp-rss.php wp-rss2.php 
Log Message:
Allow RSS language - http://mosquito.wordpress.org/view.php?id=367

Index: wp-rss2.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-rss2.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** wp-rss2.php	11 Feb 2005 06:42:07 -0000	1.36
--- wp-rss2.php	14 Feb 2005 04:17:12 -0000	1.37
***************
*** 27,30 ****
--- 27,31 ----
  	<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></pubDate>
  	<generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>
+ 	<language><?php echo get_option('rss_language'); ?></language>
  
  	<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>

Index: wp-atom.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-atom.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** wp-atom.php	12 Feb 2005 07:39:31 -0000	1.20
--- wp-atom.php	14 Feb 2005 04:17:12 -0000	1.21
***************
*** 15,19 ****
  <feed version="0.3"
    xmlns="http://purl.org/atom/ns#"
!   xmlns:dc="http://purl.org/dc/elements/1.1/">
  	<title><?php bloginfo_rss('name') ?></title>
  	<link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
--- 15,21 ----
  <feed version="0.3"
    xmlns="http://purl.org/atom/ns#"
!   xmlns:dc="http://purl.org/dc/elements/1.1/"
!   xml:lang="<?php echo get_option('rss_language'); ?>"
!   >
  	<title><?php bloginfo_rss('name') ?></title>
  	<link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />

Index: wp-rss.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-rss.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** wp-rss.php	11 Feb 2005 06:42:07 -0000	1.24
--- wp-rss.php	14 Feb 2005 04:17:12 -0000	1.25
***************
*** 15,42 ****
  <!-- generator="wordpress/<?php echo $wp_version ?>" -->
  <rss version="0.92">
!     <channel>
!         <title><?php bloginfo_rss('name') ?></title>
!         <link><?php bloginfo_rss('url') ?></link>
!         <description><?php bloginfo_rss('description') ?></description>
  	<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></lastBuildDate>
!         <docs>http://backend.userland.com/rss092</docs>
  
  <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
!         <item>
!             <title><?php the_title_rss() ?></title>
! <?php
! if (get_settings('rss_use_excerpt')) {
! ?>
!             <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
! <?php
! } else { // use content
! ?>
!             <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length')) ?></description>
! <?php
! } // end else use content
! ?>
!             <link><?php permalink_single_rss() ?></link>
!         </item>
  <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
!     </channel>
  </rss>
--- 15,37 ----
  <!-- generator="wordpress/<?php echo $wp_version ?>" -->
  <rss version="0.92">
! <channel>
! 	<title><?php bloginfo_rss('name') ?></title>
! 	<link><?php bloginfo_rss('url') ?></link>
! 	<description><?php bloginfo_rss('description') ?></description>
  	<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></lastBuildDate>
! 	<docs>http://backend.userland.com/rss092</docs>
! 	<language><?php echo get_option('rss_language'); ?></language>
  
  <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
! 	<item>
! 		<title><?php the_title_rss() ?></title>
! <?php if (get_settings('rss_use_excerpt')) { ?>
! 		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
! <?php } else { // use content ?>
! 		<description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length')) ?></description>
! <?php } ?>
! 		<link><?php permalink_single_rss() ?></link>
! 	</item>
  <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
! </channel>
  </rss>



More information about the cvs mailing list