Plugin Updates
This commit is contained in:
@@ -202,7 +202,7 @@ class WP_Tax_Query {
|
||||
* @since 4.1.0
|
||||
*
|
||||
* @param string $relation Raw relation key from the query argument.
|
||||
* @return string Sanitized relation ('AND' or 'OR').
|
||||
* @return string Sanitized relation. Either 'AND' or 'OR'.
|
||||
*/
|
||||
public function sanitize_relation( $relation ) {
|
||||
if ( 'OR' === strtoupper( $relation ) ) {
|
||||
@@ -505,7 +505,7 @@ class WP_Tax_Query {
|
||||
protected function find_compatible_table_alias( $clause, $parent_query ) {
|
||||
$alias = false;
|
||||
|
||||
// Sanity check. Only IN queries use the JOIN syntax.
|
||||
// Confidence check. Only IN queries use the JOIN syntax.
|
||||
if ( ! isset( $clause['operator'] ) || 'IN' !== $clause['operator'] ) {
|
||||
return $alias;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user