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

WordPress Trac noreply at wordpress.org
Tue Sep 6 21:28:17 UTC 2016


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

Comment (by johnjamesjacoby):

 Last touch was r26874, which is possibly what revealed this notice, but is
 no when the logical error was introduced.

 `NOT EXISTS` queries will never return `terms`, so it makes sense that it
 would not be set at this time.

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


More information about the wp-trac mailing list