[wp-trac] [WordPress Trac] #17072: Make $wp_query->query read-only
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 7 07:09:32 UTC 2011
#17072: Make $wp_query->query read-only
-------------------------+------------------------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version:
Severity: normal | Keywords: dev-feedback has-patch
-------------------------+------------------------------------
WP_Query has two properties that contain query vars:
$wp_query->query is the initial query.
$wp_query->query_vars is the "working copy", with all possible query vars
filled.
I propose we prevent modification of $wp_query->query and keep it as a
signature of that particular instance.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17072>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list