From 0ad360cc001b97d455b7a14cc408d58b7a215a1f Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 5 Dec 2007 00:31:54 +0000 Subject: [PATCH] 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 --- 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 aa29a2f95a..c26406e949 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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; }