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: http://svn.automattic.com/wordpress/trunk@6050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f851dc2257
commit
8d33c59576
|
@ -680,6 +680,7 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) {
|
||||||
$terms = array($default);
|
$terms = array($default);
|
||||||
else
|
else
|
||||||
$terms = array_diff($terms, array($term));
|
$terms = array_diff($terms, array($term));
|
||||||
|
$terms = array_map('intval', $terms);
|
||||||
wp_set_object_terms($object, $terms, $taxonomy);
|
wp_set_object_terms($object, $terms, $taxonomy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue