diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index a60052c2da..ad3fba6714 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -2628,9 +2628,9 @@ function wp_get_object_terms($object_ids, $taxonomies, $args = array()) { } // Update termmeta cache, if necessary. - if ( $args['update_term_meta_cache'] && ( 'all' === $fields || 'all_with_object_ids' === $fields || 'term_id' === $fields ) ) { - if ( 'term_id' === $fields ) { - $term_ids = $fields; + if ( $args['update_term_meta_cache'] && ( 'all' === $fields || 'all_with_object_id' === $fields || 'ids' === $fields ) ) { + if ( 'ids' === $fields ) { + $term_ids = $terms; } else { $term_ids = wp_list_pluck( $terms, 'term_id' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 631aa84043..9506c8a9f1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37566'; +$wp_version = '4.6-alpha-37567'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.