More escaping of description and cleaner default feed URIs.
git-svn-id: https://develop.svn.wordpress.org/trunk@2118 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fa24d19320
commit
2f13f79e76
@ -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