From 2096b451c704715db3c4faf699a1184260deade9 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Mon, 6 Jul 2015 20:37:24 +0000 Subject: [PATCH] In `WP_Query::parse_tax_query()`, allow taxonomy querystring to be formatted as an array. Props Veraxus. Fixes #32454. Built from https://develop.svn.wordpress.org/trunk@33095 git-svn-id: http://core.svn.wordpress.org/trunk@33066 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 30ca641afc..7cbac9db88 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -1867,6 +1867,10 @@ class WP_Query { $term = $q[$t->query_var]; + if ( is_array( $term ) ) { + $term = implode( ',', $term ); + } + if ( strpos($term, '+') !== false ) { $terms = preg_split( '/[+]+/', $term ); foreach ( $terms as $term ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index d05c237674..f88e2e8a98 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-beta1-33094'; +$wp_version = '4.3-beta1-33095'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.