Remove extraneous type-casting in `wp_get_object_terms()`.
Props OriginalEXE. Fixes #27133. git-svn-id: https://develop.svn.wordpress.org/trunk@27186 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7bdca44b97
commit
664bf1fea2
|
@ -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'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue