set_object_terms action. Props filosofo. fixes #9216
git-svn-id: http://svn.automattic.com/wordpress/trunk@10637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b8b2f2115b
commit
2df038fac9
|
@ -1451,6 +1451,7 @@ function wp_set_object_terms($object_id, $terms, $taxonomy, $append = false) {
|
|||
$wpdb->query("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id, term_order) VALUES " . join(',', $values) . " ON DUPLICATE KEY UPDATE term_order = VALUES(term_order)");
|
||||
}
|
||||
|
||||
do_action('set_object_terms', $object_id, $terms, $tt_ids, $taxonomy, $append);
|
||||
return $tt_ids;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue