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:
Ryan Boren 2007-10-28 21:33:03 +00:00
parent c66d25830f
commit 59555bdcb9
1 changed files with 3 additions and 0 deletions

View File

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