Ticket #18886: 18886.diff
File 18886.diff, 1.6 KB (added by , 13 years ago) |
---|
-
wp-includes/post-template.php
160 160 * @since 0.71 161 161 * 162 162 * @param string $more_link_text Optional. Content for when there is more text. 163 * @param string $stripteaser Optional. Teaser content before the more text.163 * @param bool $stripteaser Optional. Strip teaser content before the more text. Default is false. 164 164 */ 165 function the_content($more_link_text = null, $stripteaser = 0) {165 function the_content($more_link_text = null, $stripteaser = false) { 166 166 $content = get_the_content($more_link_text, $stripteaser); 167 167 $content = apply_filters('the_content', $content); 168 168 $content = str_replace(']]>', ']]>', $content); … … 175 175 * @since 0.71 176 176 * 177 177 * @param string $more_link_text Optional. Content for when there is more text. 178 * @param string $stripteaser Optional. Teaser content before the more text.178 * @param bool $stripteaser Optional. Strip teaser content before the more text. Default is false. 179 179 * @return string 180 180 */ 181 function get_the_content($more_link_text = null, $stripteaser = 0) {181 function get_the_content($more_link_text = null, $stripteaser = false) { 182 182 global $post, $more, $page, $pages, $multipage, $preview; 183 183 184 184 if ( null === $more_link_text ) … … 207 207 $content = array($content); 208 208 } 209 209 if ( (false !== strpos($post->post_content, '<!--noteaser-->') && ((!$multipage) || ($page==1))) ) 210 $stripteaser = 1;210 $stripteaser = true; 211 211 $teaser = $content[0]; 212 212 if ( ($more) && ($stripteaser) && ($hasTeaser) ) 213 213 $teaser = '';