Make WordPress Core


Ignore:
Timestamp:
07/06/2015 08:36:18 PM (9 years ago)
Author:
boonebgorges
Message:

In WP_Query::parse_tax_query(), allow taxonomy querystring to be formatted as an array.

Props Veraxus.
Fixes #32454.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r32620 r33095  
    18681868                $term = $q[$t->query_var];
    18691869
     1870                if ( is_array( $term ) ) {
     1871                    $term = implode( ',', $term );
     1872                }
     1873
    18701874                if ( strpos($term, '+') !== false ) {
    18711875                    $terms = preg_split( '/[+]+/', $term );
Note: See TracChangeset for help on using the changeset viewer.