[wp-trac] [WordPress Trac] #26728: Previous fix for get_queried_object, gives notices for tax queries

WordPress Trac noreply at wordpress.org
Fri Dec 27 18:08:41 UTC 2013


#26728: Previous fix for get_queried_object, gives notices for tax queries
--------------------------+--------------------
 Reporter:  layotte       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.8.1
Component:  Query         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by Otto42):

 Seems like this code had a bug to begin with then, as $query is undefined
 in this function, and $query['terms'] will never have any content.

 Rather than reintroducing a bug, let's determine what the code should be
 doing here. I cannot see why is_tax would always be true here.

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


More information about the wp-trac mailing list