Ticket #10984: 10984.1.diff
File 10984.1.diff, 2.0 KB (added by , 11 years ago) |
---|
-
wp-includes/feed.php
146 146 if ( !$feed_type ) 147 147 $feed_type = get_default_feed(); 148 148 149 $content = apply_filters('the_content', get_the_content());149 $content = apply_filters('the_content', get_the_content(null, 0, true)); 150 150 $content = str_replace(']]>', ']]>', $content); 151 151 return apply_filters('the_content_feed', $content, $feed_type); 152 152 } -
wp-includes/post-template.php
177 177 * @param bool $stripteaser Optional. Strip teaser content before the more text. Default is false. 178 178 * @return string 179 179 */ 180 function get_the_content( $more_link_text = null, $strip_teaser = false ) {180 function get_the_content( $more_link_text = null, $strip_teaser = false, $ignorepagination = false ) { 181 181 global $page, $more, $preview, $pages, $multipage; 182 182 183 183 $post = get_post(); … … 195 195 if ( $page > count( $pages ) ) // if the requested page doesn't exist 196 196 $page = count( $pages ); // give them the highest numbered page that DOES exist 197 197 198 $content = $pages[$page - 1]; 198 if ( $ignorepagination ) { 199 $content = implode("\n", $pages); 200 } else { 201 $content = $pages[$page-1]; 202 } 199 203 if ( preg_match( '/<!--more(.*?)?-->/', $content, $matches ) ) { 200 204 $content = explode( $matches[0], $content, 2 ); 201 205 if ( ! empty( $matches[1] ) && ! empty( $more_link_text ) ) -
wp-includes/formatting.php
2190 2190 function wp_trim_excerpt($text = '') { 2191 2191 $raw_excerpt = $text; 2192 2192 if ( '' == $text ) { 2193 $text = get_the_content('');2193 $text = get_the_content('', 0, true); 2194 2194 2195 2195 $text = strip_shortcodes( $text ); 2196 2196