set_object_terms action. Props filosofo. fixes #9216

git-svn-id: https://develop.svn.wordpress.org/trunk@10637 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-02-23 17:13:52 +00:00
parent 90787e8823
commit 0e7b3c3903
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}