From 5aacc9a839d5073c617101209a2b693afb0d185c Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sun, 7 Feb 2010 06:51:05 +0000 Subject: [PATCH] $term is an array not object, Fixes Notice on duplicate term checking. See #11838 git-svn-id: https://develop.svn.wordpress.org/trunk@13010 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index b5e511b5ac..543c46922e 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1743,7 +1743,7 @@ function wp_update_term( $term_id, $taxonomy, $args = array() ) { if ( $id && ($id != $term_id) ) { // If an empty slug was passed or the parent changed, reset the slug to something unique. // Otherwise, bail. - if ( $empty_slug || ( $parent != $term->parent) ) + if ( $empty_slug || ( $parent != $term['parent']) ) $slug = wp_unique_term_slug($slug, (object) $args); else return new WP_Error('duplicate_term_slug', sprintf(__('The slug “%s” is already in use by another term'), $slug));