Ticket #3670: 3670.2.diff
File 3670.2.diff, 2.8 KB (added by , 15 years ago) |
---|
-
wp-includes/default-filters.php
110 110 add_filter( 'the_content', 'wpautop' ); 111 111 add_filter( 'the_content', 'shortcode_unautop' ); 112 112 add_filter( 'the_content', 'prepend_attachment' ); 113 add_filter( 'the_content', '_escape_cdata_close', 20); 113 114 114 115 add_filter( 'the_excerpt', 'wptexturize' ); 115 116 add_filter( 'the_excerpt', 'convert_smilies' ); -
wp-includes/post-template.php
164 164 function the_content($more_link_text = null, $stripteaser = 0) { 165 165 $content = get_the_content($more_link_text, $stripteaser); 166 166 $content = apply_filters('the_content', $content); 167 $content = str_replace(']]>', ']]>', $content);168 167 echo $content; 169 168 } 170 169 -
wp-includes/comment.php
1566 1566 return; 1567 1567 } 1568 1568 1569 if ( empty($post->post_excerpt) ) 1569 if ( empty($post->post_excerpt) ) { 1570 1570 $excerpt = apply_filters('the_content', $post->post_content); 1571 else1571 } else { 1572 1572 $excerpt = apply_filters('the_excerpt', $post->post_excerpt); 1573 $excerpt = str_replace(']]>', ']]>', $excerpt); 1573 $excerpt = str_replace(']]>', ']]>', $excerpt); 1574 } 1574 1575 $excerpt = wp_html_excerpt($excerpt, 252) . '...'; 1575 1576 1576 1577 $post_title = apply_filters('the_title', $post->post_title); -
wp-includes/formatting.php
1807 1807 $text = strip_shortcodes( $text ); 1808 1808 1809 1809 $text = apply_filters('the_content', $text); 1810 $text = str_replace(']]>', ']]>', $text);1811 1810 $text = strip_tags($text); 1812 1811 $excerpt_length = apply_filters('excerpt_length', 55); 1813 1812 $excerpt_more = apply_filters('excerpt_more', '[...]'); … … 2846 2845 return apply_filters('sanitize_text_field', $filtered, $str); 2847 2846 } 2848 2847 2848 function _escape_cdata_close($content) { 2849 return str_replace(']]>', ']]>', $content); 2850 } 2851 2849 2852 ?> -
wp-includes/feed.php
145 145 $feed_type = get_default_feed(); 146 146 147 147 $content = apply_filters('the_content', get_the_content()); 148 $content = str_replace(']]>', ']]>', $content);149 148 return apply_filters('the_content_feed', $content, $feed_type); 150 149 } 151 150