From 03be8647c5e141978c5bf81da22259205efae8aa Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 23 Jun 2015 12:44:27 +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. Built from https://develop.svn.wordpress.org/trunk@32910 git-svn-id: http://core.svn.wordpress.org/trunk@32881 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index cbc592a5c0..3555d71cc4 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1046,7 +1046,7 @@ class WP_Tax_Query { 'join' => array(), ); - $join = ''; + $join = $where = ''; $this->clean_query( $clause ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 4c545b2263..0a1a9337d2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32909'; +$wp_version = '4.3-alpha-32910'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.