WordPress.org

Make WordPress Core

Ticket #24330: 24330.11.diff

File 24330.11.diff, 557 bytes (added by ryan, 5 years ago)
  • wp-includes/post-template.php

     
    193193        $post = get_post( $id );
    194194        // Avoid parsing again if the post is the same one parsed by setup_postdata().
    195195        // The extract() will set up $pages and $multipage.
    196         if ( $post->ID != $GLOBALS['id'] )
     196        if ( $post->ID != $GLOBALS['post']->ID )
    197197                extract( wp_parse_post_content( $post, false ) );
    198198        else
    199199                global $pages, $multipage;