[wp-trac] [WordPress Trac] #37962: NOT EXISTS tax_query triggers debug notice on get_queried_object()

WordPress Trac noreply at wordpress.org
Fri Sep 9 19:31:39 UTC 2016


#37962: NOT EXISTS tax_query triggers debug notice on get_queried_object()
---------------------------------------+---------------------------
 Reporter:  johnjamesjacoby            |       Owner:  boonebgorges
     Type:  defect (bug)               |      Status:  assigned
 Priority:  normal                     |   Milestone:  4.7
Component:  Taxonomy                   |     Version:  3.8
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch has-screenshots  |     Focuses:
---------------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => assigned
 * milestone:  Awaiting Review => 4.7


Comment:

 Thanks for the patch. Looks good to me.

 This raises a semi-related issue, which is that the change in [30711]
 renders the `wp_list_filter()` just above this block superfluous; there's
 no point in filtering terms (rather than clauses) by `operator`, and in
 any case, `queried_terms` always necessarily contains the matched terms
 rather than not-matched terms. I'll pull that out under the guise of the
 current ticket as well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37962#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list