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
This commit is contained in:
Ryan Boren 2007-09-06 22:07:23 +00:00
parent 9c73d36b9a
commit 836ea54d21
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}