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:
ryan 2009-02-23 17:13:52 +00:00
parent b8b2f2115b
commit 2df038fac9
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;
}