[wp-trac] [WordPress Trac] #29718: Improved coverage for WP_Tax_Query unit tests

WordPress Trac noreply at wordpress.org
Thu Oct 16 21:19:55 UTC 2014


#29718: Improved coverage for WP_Tax_Query unit tests
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  enhancement   |      Status:  reopened
 Priority:  normal        |   Milestone:  4.1
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * keywords:  has-patch commit => has-patch


Comment:

 nofearinc - Thanks for the report. This appears to be leftover logic from
 the old loop format of `get_sql()` - totally my fault. I think an easier
 fix than reversing the logic of each clause is just to return the empty
 $sql array in these cases. I'll run some tests.

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


More information about the wp-trac mailing list