From b906aa0e8666f1c1a3cd432c8e047575af3b0ebf Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 28 Oct 2007 21:33:03 +0000 Subject: [PATCH] Add is_wp_error check git-svn-id: http://svn.automattic.com/wordpress/trunk@6295 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index f16b7adc0..173bf9841 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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();