wp_insert_term() and wp_update_term(). see #4189

git-svn-id: https://develop.svn.wordpress.org/trunk@5522 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-05-23 05:42:31 +00:00
parent 0bc2a4b956
commit 7f3e74ffca
2 changed files with 57 additions and 22 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ function wp_create_tag($tag_name) {
if ( $id = tag_exists($tag_name) )
return $id;
$tag_id = add_term($tag_name, 'post_tag');
$tag_id = wp_insert_term($tag_name, 'post_tag');
}
function wp_delete_user($id, $reassign = 'novalue') {