Ticket #26867: globalize-query-vars.diff
File globalize-query-vars.diff, 753 bytes (added by , 11 years ago) |
---|
-
src/wp-settings.php
248 248 * @global object $wp_the_query 249 249 * @since 2.0.0 250 250 */ 251 $ wp_the_query= new WP_Query();251 $GLOBALS['wp_the_query'] = new WP_Query(); 252 252 253 253 /** 254 254 * Holds the reference to @see $wp_the_query … … 256 256 * @global object $wp_query 257 257 * @since 1.5.0 258 258 */ 259 $ wp_query = $wp_the_query;259 $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; 260 260 261 261 /** 262 262 * Holds the WordPress Rewrite object for creating pretty URLs … … 270 270 * @global object $wp 271 271 * @since 2.0.0 272 272 */ 273 $ wp= new WP();273 $GLOBALS['wp'] = new WP(); 274 274 275 275 /** 276 276 * WordPress Widget Factory Object