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

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 8 19:30:47 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:                  |
----------------------------+------------------------------

Comment (by ryan):

 That all sounds like expected behavior.  "Edit Category" shows because a
 taxonomy was queried, not a particular post.  Linking to "/wp-
 admin/edit.php?taxonomy=category&tag_ID=14" would likely be more useful
 than linking to edit-tags.php, but either way showing Edit Category is
 correct here.

 If you don't want the admin bar and other areas to reflect queries made
 within your template, use get_posts() instead of query_posts().

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


More information about the wp-trac mailing list