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:
parent
380cc5d7d6
commit
592f1be68e
|
@ -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;
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue