[wp-trac] [WordPress Trac] #10907: get_queried_object does not always return a category

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 26 08:50:31 UTC 2010


#10907: get_queried_object does not always return a category
--------------------------+-------------------------------------------------
 Reporter:  dimitryz      |       Owner:  dd32             
     Type:  defect (bug)  |      Status:  assigned         
 Priority:  normal        |   Milestone:  3.0              
Component:  Query         |     Version:  2.8.4            
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------
Changes (by dd32):

  * keywords:  get_queried_object, category => reporter-feedback
  * milestone:  Unassigned => 3.0


Comment:

 What sort of query are you using to cause this? Is it a specific URL?

 for requests serving 'category_name', 'cat' should be set, as its already
 run through get_category_by_path by this code:
 http://core.trac.wordpress.org/browser/trunk/wp-includes/query.php#L1877

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


More information about the wp-trac mailing list