[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
- Previous message: [wp-cvs] wordpress/wp-includes functions-post.php, 1.1,
1.2 functions.php, 1.103, 1.104 links-update-xml.php, 1.5,
1.6 links.php, 1.12, 1.13 template-functions-author.php, 1.8,
1.9 template-functions-category.php, 1.28,
1.29 template-functions-comment.php, 1.20,
1.21 template-functions-general.php, 1.29,
1.30 template-functions-links.php, 1.11,
1.12 template-functions-post.php, 1.22, 1.23 wp-db.php, 1.11, 1.12
- Next message: [wp-cvs] wordpress/wp-admin upgrade-functions.php,1.55,1.56
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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; } } } ?>
- Previous message: [wp-cvs] wordpress/wp-includes functions-post.php, 1.1,
1.2 functions.php, 1.103, 1.104 links-update-xml.php, 1.5,
1.6 links.php, 1.12, 1.13 template-functions-author.php, 1.8,
1.9 template-functions-category.php, 1.28,
1.29 template-functions-comment.php, 1.20,
1.21 template-functions-general.php, 1.29,
1.30 template-functions-links.php, 1.11,
1.12 template-functions-post.php, 1.22, 1.23 wp-db.php, 1.11, 1.12
- Next message: [wp-cvs] wordpress/wp-admin upgrade-functions.php,1.55,1.56
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list