﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
22125	Prevent stomping $wp_the_query by accident	scribu	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."	defect (bug)	closed	high	3.5	Query	3.5	blocker	fixed	has-patch	
