Skip to content

Commit 2f13f79

Browse files
committed
More escaping of description and cleaner default feed URIs.
git-svn-id: https://develop.svn.wordpress.org/trunk@2118 602fd350-edb4-49c9-b593-d223f7449a82
1 parent fa24d19 commit 2f13f79

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

wp-includes/template-functions-links.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ function get_feed_link($feed='rss2') {
187187
case 'comments_rss2':
188188
$output = $feed_url .'/wp-commentsrss2.php';
189189
if ($do_perma) {
190-
$output = $comment_feed_url . '/rss2/';
190+
$output = $comment_feed_url . '/';
191191
}
192192
break;
193193
case 'rss2':
194194
default:
195195
$output = $feed_url .'/wp-rss2.php';
196196
if ($do_perma) {
197-
$output = $feed_url . '/rss2/';
197+
$output = $feed_url . '/';
198198
}
199199
break;
200200
}

wp-rss2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535

3636
<guid><?php the_permalink($id); ?></guid>
3737
<?php if (get_settings('rss_use_excerpt')) : ?>
38-
<description><?php the_excerpt_rss() ?></description>
38+
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
3939
<?php else : ?>
40-
<description><?php the_excerpt_rss() ?></description>
40+
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
4141
<?php if ( strlen( $post->post_content ) > 0 ) : ?>
4242
<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
4343
<?php else : ?>

0 commit comments

Comments
 (0)