Taxonomy: Restore the ability to use string-based `$args` in `wp_get_object_terms()`.

Props tyxla.
Fixes #39215

Built from https://develop.svn.wordpress.org/trunk@39578


git-svn-id: http://core.svn.wordpress.org/trunk@39518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2016-12-12 05:47:42 +00:00
parent 826a0323a2
commit 883689c816
2 changed files with 3 additions and 1 deletions

View File

@ -1877,6 +1877,8 @@ function wp_get_object_terms($object_ids, $taxonomies, $args = array()) {
$object_ids = array($object_ids);
$object_ids = array_map('intval', $object_ids);
$args = wp_parse_args( $args );
$args['taxonomy'] = $taxonomies;
$args['object_ids'] = $object_ids;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39577';
$wp_version = '4.8-alpha-39578';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.