| 1 | Index: trunk/wp-includes/feed.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- trunk/wp-includes/feed.php (revision 7587) |
|---|
| 4 | +++ trunk/wp-includes/feed.php (working copy) |
|---|
| 5 | @@ -48,6 +48,7 @@ |
|---|
| 6 | } elseif ( 0 == $encode_html ) { |
|---|
| 7 | $content = make_url_footnote($content); |
|---|
| 8 | } elseif ( 2 == $encode_html ) { |
|---|
| 9 | + $content = preg_replace('|//\s*<!\[CDATA\[|', '<![CDATA[', $content); |
|---|
| 10 | $content = strip_tags($content); |
|---|
| 11 | } |
|---|
| 12 | if ( $cut ) { |
|---|
| 13 | Index: trunk/wp-includes/formatting.php |
|---|
| 14 | =================================================================== |
|---|
| 15 | --- trunk/wp-includes/formatting.php (revision 7587) |
|---|
| 16 | +++ trunk/wp-includes/formatting.php (working copy) |
|---|
| 17 | @@ -831,6 +832,7 @@ |
|---|
| 18 | $text = get_the_content(''); |
|---|
| 19 | $text = apply_filters('the_content', $text); |
|---|
| 20 | $text = str_replace(']]>', ']]>', $text); |
|---|
| 21 | + $text = preg_replace('|//\s*<!\[CDATA\[|', '<![CDATA[', $text); |
|---|
| 22 | $text = strip_tags($text); |
|---|
| 23 | $excerpt_length = 55; |
|---|
| 24 | $words = explode(' ', $text, $excerpt_length + 1); |
|---|
| 25 | Index: trunk/wp-includes/post-template.php |
|---|
| 26 | =================================================================== |
|---|
| 27 | --- trunk/wp-includes/post-template.php (revision 7587) |
|---|
| 28 | +++ trunk/wp-includes/post-template.php (working copy) |
|---|
| 29 | @@ -77,7 +77,8 @@ |
|---|
| 30 | function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { |
|---|
| 31 | $content = get_the_content($more_link_text, $stripteaser, $more_file); |
|---|
| 32 | $content = apply_filters('the_content', $content); |
|---|
| 33 | - $content = str_replace(']]>', ']]>', $content); |
|---|
| 34 | + if (is_feed()) |
|---|
| 35 | + $content = str_replace(']]>', ']]>', $content); |
|---|
| 36 | echo $content; |
|---|
| 37 | } |
|---|
| 38 | |
|---|