[wp-trac] [WordPress Trac] #26634: get_queried_object does not test anymore for existence of terms in tax_query

WordPress Trac noreply at wordpress.org
Sun Dec 15 20:05:07 UTC 2013


#26634: get_queried_object does not test anymore for existence of terms in
tax_query
--------------------------+--------------------
 Reporter:  Chouby        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.8.1
Component:  Query         |     Version:  3.8
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by Chouby):

 @wonderboymusic I remove a custom taxonomy from the query in a parse_query
 filter
 {{{
 add_filter('parse_query', 'remove_my_tax');
 function remove_my_tax($query) {
         $qvars = &$query->query_vars;
         unset ($qvars['my-tax']); // 'my-tax' is a custom taxonomy query
 var
 }
 }}}

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


More information about the wp-trac mailing list