[wp-trac] [WordPress Trac] #30117: Possible regression in taxonomy.php sanitize_query
WordPress Trac
noreply at wordpress.org
Sun Oct 26 22:54:57 UTC 2014
#30117: Possible regression in taxonomy.php sanitize_query
--------------------------+---------------------------
Reporter: tmtrademark | Owner: boonebgorges
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.1
Component: Taxonomy | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => accepted
* milestone: Awaiting Review => 4.1
Comment:
tmtrademark and I have worked through this at WCSF contributor day. Turns
out there is a regression where `WP_Tax_Query::sanitize_queries()` returns
a bum result if one of the items passed in the `$tax_query` array is an
empty string - it was passing the `is_first_order_clause()` check, because
`empty( $clause )` was returning true.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30117#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list