WordPress.org

Make WordPress Core

Ticket #18886: 18886.diff

File 18886.diff, 1.6 KB (added by GaryJ, 7 years ago)
  • wp-includes/post-template.php

     
    160160 * @since 0.71
    161161 *
    162162 * @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.
    164164 */
    165 function the_content($more_link_text = null, $stripteaser = 0) {
     165function the_content($more_link_text = null, $stripteaser = false) {
    166166        $content = get_the_content($more_link_text, $stripteaser);
    167167        $content = apply_filters('the_content', $content);
    168168        $content = str_replace(']]>', ']]>', $content);
     
    175175 * @since 0.71
    176176 *
    177177 * @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.
    179179 * @return string
    180180 */
    181 function get_the_content($more_link_text = null, $stripteaser = 0) {
     181function get_the_content($more_link_text = null, $stripteaser = false) {
    182182        global $post, $more, $page, $pages, $multipage, $preview;
    183183
    184184        if ( null === $more_link_text )
     
    207207                $content = array($content);
    208208        }
    209209        if ( (false !== strpos($post->post_content, '<!--noteaser-->') && ((!$multipage) || ($page==1))) )
    210                 $stripteaser = 1;
     210                $stripteaser = true;
    211211        $teaser = $content[0];
    212212        if ( ($more) && ($stripteaser) && ($hasTeaser) )
    213213                $teaser = '';