Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30970, comment 4


Ignore:
Timestamp:
01/10/2015 06:19:59 PM (12 years ago)
Author:
sc0ttkclark

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30970, comment 4

    initial v1  
    33I think at the same time, what should be happening is the global $post be set from setup_postdata too, since setup_postdata sets all other globals, but leaves out the $post global itself.
    44
    5 I further propose we add a global $post set from the $post variable sent to setup_postdata, and after the local $post is setup if ( ! ( $post instanceof WP_Post )
     5I further propose we add a global $post set from the $post variable sent to setup_postdata at the end of the local $post setup in if ( ! ( $post instanceof WP_Post )