Ticket #3670: 3670-I.diff
File 3670-I.diff, 2.9 KB (added by , 14 years ago) |
---|
-
wp-includes/post-template.php
165 165 function the_content($more_link_text = null, $stripteaser = 0) { 166 166 $content = get_the_content($more_link_text, $stripteaser); 167 167 $content = apply_filters('the_content', $content); 168 $content = str_replace(']]>', ']]>', $content);169 168 echo $content; 170 169 } 171 170 -
wp-includes/comment.php
1710 1710 $excerpt = apply_filters('the_content', $post->post_content); 1711 1711 else 1712 1712 $excerpt = apply_filters('the_excerpt', $post->post_excerpt); 1713 $excerpt = str_replace(']]>', ']]>', $excerpt);1714 1713 $excerpt = wp_html_excerpt($excerpt, 252) . '...'; 1715 1714 1716 1715 $post_title = apply_filters('the_title', $post->post_title); -
wp-includes/formatting.php
1881 1881 $text = strip_shortcodes( $text ); 1882 1882 1883 1883 $text = apply_filters('the_content', $text); 1884 $text = str_replace(']]>', ']]>', $text);1885 1884 $text = strip_tags($text); 1886 1885 $excerpt_length = apply_filters('excerpt_length', 55); 1887 1886 $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]'); … … 2906 2905 2907 2906 } 2908 2907 2908 /** 2909 * Wrap a string in CDATA tags for inclusion of non-XML in XML. 2910 * 2911 * @since 3.2.0 2912 */ 2913 function wp_cdata( $string ) { 2914 return '<![CDATA[' . wp_escape_cdata( $string ) . ']]>'; 2915 } 2916 2917 /** 2918 * Make a string safe for inclusion in a CDATA block. 2919 * 2920 * The only invalid string in CDATA is "]]>". Since adjacent CDATA sections 2921 * are equivalent to the result of their concatenation, the preferred method 2922 * of including "]]>" is to split it between two sections. 2923 * 2924 * @since 3.2.0 2925 */ 2926 function wp_escape_cdata( $string ) { 2927 return str_replace( ']]>', ']]]><![CDATA[]>', $string ); 2928 } 2929 2909 2930 ?> -
wp-includes/deprecated.php
1734 1734 $excerpt .= ($use_dotdotdot) ? '...' : ''; 1735 1735 $content = $excerpt; 1736 1736 } 1737 $content = str_replace(']]>', ']]>', $content);1738 1737 echo $content; 1739 1738 } 1740 1739 -
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