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

Props tyxla.
Merges [39578] to the 4.7 branch.
Fixes #39215.

Built from https://develop.svn.wordpress.org/branches/4.7@39611


git-svn-id: http://core.svn.wordpress.org/branches/4.7@39551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2016-12-16 05:50:32 +00:00
parent 380cc5d7d6
commit 592f1be68e
2 changed files with 3 additions and 1 deletions

View File

@ -1871,6 +1871,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.7.1-alpha-39610';
$wp_version = '4.7.1-alpha-39611';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.