Make WordPress Core


Ignore:
Timestamp:
08/03/2016 01:50:14 PM (8 years ago)
Author:
boonebgorges
Message:

In WP_Term_Query, accept a string value for taxonomy.

Props endocreative.
Props ocean90 for review.
Fixes #37545.

File:
1 edited

Legend:

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

    r38099 r38181  
    220220        }
    221221
    222         $taxonomies = isset( $query['taxonomy'] ) ? $query['taxonomy'] : null;
     222        $taxonomies = isset( $query['taxonomy'] ) ? (array) $query['taxonomy'] : null;
    223223
    224224        /**
Note: See TracChangeset for help on using the changeset viewer.