Make WordPress Core

Ticket #26867: globalize-query-vars.diff

File globalize-query-vars.diff, 753 bytes (added by nbachiyski, 11 years ago)
  • src/wp-settings.php

     
    248248 * @global object $wp_the_query
    249249 * @since 2.0.0
    250250 */
    251 $wp_the_query = new WP_Query();
     251$GLOBALS['wp_the_query'] = new WP_Query();
    252252
    253253/**
    254254 * Holds the reference to @see $wp_the_query
     
    256256 * @global object $wp_query
    257257 * @since 1.5.0
    258258 */
    259 $wp_query = $wp_the_query;
     259$GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
    260260
    261261/**
    262262 * Holds the WordPress Rewrite object for creating pretty URLs
     
    270270 * @global object $wp
    271271 * @since 2.0.0
    272272 */
    273 $wp = new WP();
     273$GLOBALS['wp'] = new WP();
    274274
    275275/**
    276276 * WordPress Widget Factory Object