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:
parent
3493c7a2eb
commit
2e25b92eb2
|
@ -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