[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:06:42 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 layotte):

 If $this->is_tax is always true, than the line 3265 above will always be
 true:

 {{{
  if ( $this->is_category || $this->is_tag || $this->is_tax )
 }}}

 And $query is never defined in this function, so it'll always be empty.

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


More information about the wp-trac mailing list