[wp-cvs] wordpress wp-atom.php,1.9,1.10

Michel Valdrighi michelvaldrighi at users.sourceforge.net
Mon May 24 11:49:21 CDT 2004


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

Modified Files:
	wp-atom.php 
Log Message:
the Atom feed should always provide an excerpt, even in full content mode

Index: wp-atom.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-atom.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** wp-atom.php	13 May 2004 17:21:38 -0000	1.9
--- wp-atom.php	24 May 2004 16:49:19 -0000	1.10
***************
*** 7,10 ****
--- 7,11 ----
  
  header('Content-type: application/atom+xml', true);
+ $more = 1;
  
  ?>
***************
*** 32,41 ****
  		<issued><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt); ?></issued>
  		<?php the_category_rss('rdf') ?>
- <?php $more = 1; if (get_settings('rss_use_excerpt')) { ?>
  		<summary type="text/html" mode="escaped"><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></summary>
! <?php } else { // use content ?>
! 		<summary type="text/html"><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></summary>
  		<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
! <?php } // end else use content ?>
  	</entry>
  	<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
--- 33,40 ----
  		<issued><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt); ?></issued>
  		<?php the_category_rss('rdf') ?>
  		<summary type="text/html" mode="escaped"><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></summary>
! <?php if (!get_settings('rss_use_excerpt')) { ?>
  		<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
! <?php } ?>
  	</entry>
  	<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>




More information about the cvs mailing list