Files
wordpress-develop/src/wp-includes
Boone Gorges 56c82e534f Avoid redundant table joins in WP_Tax_Query.
IN clauses that are connected by OR require only a single table join. To avoid
extraneous joins, keep track of generated table aliases, and let sibling
clauses piggy-back on those aliases when possible.

Introduces WP_Tax_Query::sanitize_relation() to reduce some repeated code.

Adds unit tests to verify the JOIN consolidation, and integration tests for
cases where JOINS are being combined.

Props boonebgorges, otto42, jakub.tyrcha.
Fixes #18105.

git-svn-id: https://develop.svn.wordpress.org/trunk@29902 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-15 16:39:19 +00:00
..
2014-09-11 19:06:33 +00:00
2014-03-27 22:40:06 +00:00
2014-08-09 19:29:37 +00:00
2014-08-09 19:29:37 +00:00
2014-06-10 00:29:35 +00:00
2014-09-12 05:50:03 +00:00
2014-03-26 18:42:41 +00:00
2014-10-07 15:27:56 +00:00
2014-09-29 04:06:54 +00:00
2014-07-09 18:06:54 +00:00
2014-10-01 14:58:21 +00:00