Don't return all taxonomies for an object type of 0. Props tellyworth and nbachiyski. fixes #5417
git-svn-id: http://svn.automattic.com/wordpress/trunk@6355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dab1c792c7
commit
0ad360cc00
|
@ -42,7 +42,7 @@ function get_object_taxonomies($object_type) {
|
||||||
|
|
||||||
$taxonomies = array();
|
$taxonomies = array();
|
||||||
foreach ( $wp_taxonomies as $taxonomy ) {
|
foreach ( $wp_taxonomies as $taxonomy ) {
|
||||||
if ( $object_type == $taxonomy->object_type )
|
if ( $object_type === $taxonomy->object_type )
|
||||||
$taxonomies[] = $taxonomy->name;
|
$taxonomies[] = $taxonomy->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue