[wp-trac] [WordPress Trac] #22125: Prevent stomping $wp_the_query by accident
WordPress Trac
noreply at wordpress.org
Fri Nov 2 21:34:40 UTC 2012
#22125: Prevent stomping $wp_the_query by accident
-------------------------+------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: Query | Version:
Severity: critical | Resolution:
Keywords: has-patch |
-------------------------+------------------
Changes (by wpmuguru):
* severity: normal => critical
* milestone: Awaiting Review => 3.5
Comment:
Attached is a page template for 2012 that demonstrates that wp_reset_query
does not reset to the original query when the global $wp_query is assigned
a new WP_Query. This problem is fixed by 22125.diff.
The bug was introduced in [21792]. Prior to that change query_posts
returned a reference which replaced the existing $wp_query reference.
After the change query_posts is returning an object which replaces the
referenced object.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22125#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list