From 883689c816bcd9364ea372d19972f8e00c6c0630 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Mon, 12 Dec 2016 05:47:42 +0000 Subject: [PATCH] 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 --- wp-includes/taxonomy.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index bed3894334..7fa4076acf 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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; diff --git a/wp-includes/version.php b/wp-includes/version.php index c5d2f70d25..cda11307fd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.