wp_insert_term() and wp_update_term(). see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user