Changeset 19069
- Timestamp:
- 10/26/2011 10:15:29 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r18886 r19069 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.164 */ 165 function the_content($more_link_text = null, $stripteaser = 0) {163 * @param bool $stripteaser Optional. Strip teaser content before the more text. Default is false. 164 */ 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); … … 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 … … 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 if ( ($more) && ($stripteaser) && ($hasTeaser))212 if ( $more && $stripteaser && $hasTeaser ) 213 213 $teaser = ''; 214 214 $output .= $teaser;
Note: See TracChangeset
for help on using the changeset viewer.