From d91b382e1f1001fec00c0849a4ee9b1d45bba89c Mon Sep 17 00:00:00 2001 From: wpmuguru 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: http://svn.automattic.com/wordpress/trunk@13321 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 2a7bb5d42..e278b4a27 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();