Add is_wp_error check
git-svn-id: https://develop.svn.wordpress.org/trunk@6295 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c66d25830f
commit
59555bdcb9
@ -884,6 +884,9 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) {
|
||||
|
||||
if ( ! $ids = is_term($term, $taxonomy) )
|
||||
return false;
|
||||
if ( is_wp_error( $ids ) )
|
||||
return $ids;
|
||||
|
||||
$tt_id = $ids['term_taxonomy_id'];
|
||||
|
||||
$defaults = array();
|
||||
|
Loading…
Reference in New Issue
Block a user