WordPress.org

Make WordPress Core

Ticket #21894: fix_more_setup_postdata_21852.diff

File fix_more_setup_postdata_21852.diff, 480 bytes (added by jeremyclarke, 8 years ago)

fix more tag via setup_postdata

  • wp-includes/query.php

     
    36053605        $page = get_query_var('page');
    36063606        if ( !$page )
    36073607                $page = 1;
    3608         if ( is_single() || is_page() || is_feed() )
     3608        $more = false;
     3609        if ( is_single($id) || is_page($id) || is_feed() )
    36093610                $more = 1;
    36103611        $content = $post->post_content;
    36113612        if ( strpos( $content, '<!--nextpage-->' ) ) {