Don't return all taxonomies for an object type of 0. Props tellyworth and nbachiyski. fixes #5417
git-svn-id: https://develop.svn.wordpress.org/trunk@6355 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
721b8c930b
commit
efccf5d5b8
@ -42,7 +42,7 @@ function get_object_taxonomies($object_type) {
|
||||
|
||||
$taxonomies = array();
|
||||
foreach ( $wp_taxonomies as $taxonomy ) {
|
||||
if ( $object_type == $taxonomy->object_type )
|
||||
if ( $object_type === $taxonomy->object_type )
|
||||
$taxonomies[] = $taxonomy->name;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user