From 59555bdcb90bfdbe01ca5f89027b3e398ac8ab1c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 28 Oct 2007 21:33:03 +0000 Subject: [PATCH] Add is_wp_error check git-svn-id: https://develop.svn.wordpress.org/trunk@6295 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index f16b7adc08..173bf9841e 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();