[wp-trac] [WordPress Trac] #16798: Admin bar edit action is affected by query_posts, tax_query

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 23 11:55:30 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:  Awaiting Review
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch


Comment:

 Replying to [comment:2 kanuck54]:
 > If that's supposed to be the idea there, I would expect the "edit" link
 to disappear entirely. It doesn't make a lot of sense to offer me the
 opportunity to edit whichever of the many categories happens to be last in
 the list; it's confusing.

 `wp_reset_query()` indeed should be used, but here's a patch to hide the
 "Edit" link if a subsequent query has been made.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16798#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list