From 836ea54d211329a55d6e3bb4c03af34a86b0803f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 6 Sep 2007 22:07:23 +0000 Subject: [PATCH] Case terms to int so we don't try to create new terms with the term ids as the names. fixes #4920 git-svn-id: https://develop.svn.wordpress.org/trunk@6050 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 6497cb1f67..b8d1bff7a4 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -680,6 +680,7 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) { $terms = array($default); else $terms = array_diff($terms, array($term)); + $terms = array_map('intval', $terms); wp_set_object_terms($object, $terms, $taxonomy); }