From 4d3733bef0da1a399c3f37ab6039ee5c577e38da Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 25 Feb 2010 21:04:02 +0000 Subject: [PATCH] Pass taxonomy when looking for duplicate term slug. git-svn-id: https://develop.svn.wordpress.org/trunk@13405 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 a5efa7a5ed..5b789aa50b 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1480,7 +1480,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) { if ( empty($slug) ) $slug = sanitize_title($name); - elseif ( is_term($slug) ) // Provided slug issue. + elseif ( is_term($slug, $taxonomy) ) // Provided slug issue. return new WP_Error('term_slug_exists', __('A Term with the slug provided already exists.')); $term_group = 0;