mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
In WP_Query::parse_tax_query(), allow taxonomy querystring to be formatted as an array.
Props Veraxus. Fixes #32454. git-svn-id: https://develop.svn.wordpress.org/trunk@33095 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user