From c1dbe9ab77f158444e48993825856015c6dbcd6a Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 17 Feb 2014 21:56:12 +0000 Subject: [PATCH] Remove extraneous type-casting in `wp_get_object_terms()`. Props OriginalEXE. Fixes #27133. Built from https://develop.svn.wordpress.org/trunk@27186 git-svn-id: http://core.svn.wordpress.org/trunk@27046 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index a50bbee3b0..234063d969 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1972,7 +1972,7 @@ function wp_get_object_terms($object_ids, $taxonomies, $args = array()) { if ( !is_array($taxonomies) ) $taxonomies = array($taxonomies); - foreach ( (array) $taxonomies as $taxonomy ) { + foreach ( $taxonomies as $taxonomy ) { if ( ! taxonomy_exists($taxonomy) ) return new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); }