From 2e25b92eb2c204acabbb55994deb791d999a6ff9 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Tue, 23 Feb 2010 02:37:19 +0000 Subject: [PATCH] fix debug notice in wp_set_object_terms(), props jeremyclarke, fixes #12344 git-svn-id: https://develop.svn.wordpress.org/trunk@13321 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 2a7bb5d427..e278b4a27d 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1591,6 +1591,8 @@ function wp_set_object_terms($object_id, $terms, $taxonomy, $append = false) { if ( ! $append ) $old_tt_ids = wp_get_object_terms($object_id, $taxonomy, array('fields' => 'tt_ids', 'orderby' => 'none')); + else + $old_tt_ids = array(); $tt_ids = array(); $term_ids = array();