mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user