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
This commit is contained in:
parent
a62cc940ea
commit
2096b451c7
|
@ -1867,6 +1867,10 @@ class WP_Query {
|
||||||
|
|
||||||
$term = $q[$t->query_var];
|
$term = $q[$t->query_var];
|
||||||
|
|
||||||
|
if ( is_array( $term ) ) {
|
||||||
|
$term = implode( ',', $term );
|
||||||
|
}
|
||||||
|
|
||||||
if ( strpos($term, '+') !== false ) {
|
if ( strpos($term, '+') !== false ) {
|
||||||
$terms = preg_split( '/[+]+/', $term );
|
$terms = preg_split( '/[+]+/', $term );
|
||||||
foreach ( $terms as $term ) {
|
foreach ( $terms as $term ) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue