mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
More escaping of description and cleaner default feed URIs.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
25897c2b91
commit
2c5c76c12b
@ -187,14 +187,14 @@ function get_feed_link($feed='rss2') {
|
||||
case 'comments_rss2':
|
||||
$output = $feed_url .'/wp-commentsrss2.php';
|
||||
if ($do_perma) {
|
||||
$output = $comment_feed_url . '/rss2/';
|
||||
$output = $comment_feed_url . '/';
|
||||
}
|
||||
break;
|
||||
case 'rss2':
|
||||
default:
|
||||
$output = $feed_url .'/wp-rss2.php';
|
||||
if ($do_perma) {
|
||||
$output = $feed_url . '/rss2/';
|
||||
$output = $feed_url . '/';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -35,9 +35,9 @@ $more = 1;
|
||||
|
||||
<guid><?php the_permalink($id); ?></guid>
|
||||
<?php if (get_settings('rss_use_excerpt')) : ?>
|
||||
<description><?php the_excerpt_rss() ?></description>
|
||||
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
|
||||
<?php else : ?>
|
||||
<description><?php the_excerpt_rss() ?></description>
|
||||
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
|
||||
<?php if ( strlen( $post->post_content ) > 0 ) : ?>
|
||||
<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
|
||||
<?php else : ?>
|
||||
|
Loading…
Reference in New Issue
Block a user