WordPress.org

Make WordPress Core

Ticket #21894: 21894.diff

File 21894.diff, 524 bytes (added by obenland, 6 years ago)
  • src/wp-includes/query.php

     
    43614361        $page = get_query_var('page');
    43624362        if ( ! $page )
    43634363                $page = 1;
    4364         if ( is_single() || is_page() || is_feed() )
    4365                 $more = 1;
     4364        $more = ( is_single( $id ) || is_page( $id ) || is_feed() ) ? 1 : 0;
    43664365        $content = $post->post_content;
    43674366        if ( false !== strpos( $content, '<!--nextpage-->' ) ) {
    43684367                if ( $page > 1 )