From a6ac8d41f7864e329708bb565ed42686403fc2d8 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Wed, 31 Mar 2004 16:41:30 +0000 Subject: [PATCH] fixed multiple breakage possibilities with feeds git-svn-id: http://svn.automattic.com/wordpress/trunk@1039 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-post.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/template-functions-post.php b/wp-includes/template-functions-post.php index cf6c07d5a..51363bdf0 100644 --- a/wp-includes/template-functions-post.php +++ b/wp-includes/template-functions-post.php @@ -59,6 +59,7 @@ function get_the_title() { function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { $content = get_the_content($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_content', $content); + $content = str_replace(']]>', ']]>', $content); echo $content; } @@ -91,6 +92,7 @@ function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file $excerpt .= ($use_dotdotdot) ? '...' : ''; $content = $excerpt; } + $content = str_replace(']]>', ']]>', $content); echo $content; } @@ -151,6 +153,7 @@ function the_excerpt_rss($cut = 0, $encode_html = 0) { $output = make_url_footnote($output); } elseif ($encode_html == 2) { $output = strip_tags($output); + $output = str_replace('&', '&', $output); } if ($cut) { $excerpt = ''; @@ -168,6 +171,7 @@ function the_excerpt_rss($cut = 0, $encode_html = 0) { $excerpt .= ($use_dotdotdot) ? '...' : ''; $output = $excerpt; } + $output = str_replace(']]>', ']]>', $output); echo $output; }