[wp-trac] [WordPress Trac] #16798: Admin bar edit action is affected by query_posts, tax_query
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 24 21:17:54 UTC 2011
#16798: Admin bar edit action is affected by query_posts, tax_query
----------------------------+------------------
Reporter: kanuck54 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.3
Component: Administration | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------
Changes (by SergeyBiryukov):
* milestone: Awaiting Review => 3.3
Comment:
Replying to [comment:7 nacin]:
> Would it make more sense to use `$wp_the_query-> get_queried_object()`,
perhaps? Or rather, `if ( ! is_main_query() ) wp_reset_query();`
The first option seems less obtrusive. Done in [attachment:16798.2.patch].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16798#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list