From e0908f450f88b81200cd5fcbae24d4c13ced4f5f Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 23 Jun 2015 12:43:05 +0000 Subject: [PATCH] Fix PHP notice in `WP_Tax_Query::get_sql_for_clause()`. Previously, the `$where` variable was not initialized, so that when an invalid 'operator' was passed, PHP would complain that `$where` was undefined. Props dlh. Fixes #32756. git-svn-id: https://develop.svn.wordpress.org/trunk@32910 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index cbc592a5c0..3555d71cc4 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -1046,7 +1046,7 @@ class WP_Tax_Query { 'join' => array(), ); - $join = ''; + $join = $where = ''; $this->clean_query( $clause );