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
This commit is contained in:
parent
80532efbf4
commit
d91b382e1f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue