Ticket #3670: 3670.001.diff
File 3670.001.diff, 1.6 KB (added by , 16 years ago) |
---|
-
trunk/wp-includes/feed.php
48 48 } elseif ( 0 == $encode_html ) { 49 49 $content = make_url_footnote($content); 50 50 } elseif ( 2 == $encode_html ) { 51 $content = preg_replace('|//\s*<!\[CDATA\[|', '<![CDATA[', $content); 51 52 $content = strip_tags($content); 52 53 } 53 54 if ( $cut ) { -
trunk/wp-includes/formatting.php
831 832 $text = get_the_content(''); 832 833 $text = apply_filters('the_content', $text); 833 834 $text = str_replace(']]>', ']]>', $text); 835 $text = preg_replace('|//\s*<!\[CDATA\[|', '<![CDATA[', $text); 834 836 $text = strip_tags($text); 835 837 $excerpt_length = 55; 836 838 $words = explode(' ', $text, $excerpt_length + 1); -
trunk/wp-includes/post-template.php
77 77 function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { 78 78 $content = get_the_content($more_link_text, $stripteaser, $more_file); 79 79 $content = apply_filters('the_content', $content); 80 $content = str_replace(']]>', ']]>', $content); 80 if (is_feed()) 81 $content = str_replace(']]>', ']]>', $content); 81 82 echo $content; 82 83 } 83 84