Prevent stomping $wp_the_query by accident
|Reported by:||scribu||Owned by:||ryan|
We have this in wp-settings.php:
$wp_query =& $wp_the_query;
This was necessary in PHP4, but in PHP5 it makes it easy to overwrite $wp_the_query by accident:
// tra la la, some template file $wp_query = new WP_Query( ... );
and in general it obscures the fact that $wp_the_query should remain frozen.
Change History (8)
- Milestone changed from Awaiting Review to 3.5
- Severity changed from normal to critical
- Priority changed from normal to high
- Severity changed from critical to blocker
Note: See TracTickets for help on using tickets.