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
This commit is contained in:
Ron Rennick 2010-02-23 02:37:19 +00:00
parent 3493c7a2eb
commit 2e25b92eb2
1 changed files with 2 additions and 0 deletions

View File

@ -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();