Have wp_set_post_terms return wp_set_object_terms. fixes #14301.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0fc06ad48b
commit
5fb64228d8
|
@ -2642,7 +2642,7 @@ function wp_set_post_terms( $post_id = 0, $tags = '', $taxonomy = 'post_tag', $a
|
|||
$tags = array_unique( $tags );
|
||||
}
|
||||
|
||||
wp_set_object_terms($post_id, $tags, $taxonomy, $append);
|
||||
return wp_set_object_terms($post_id, $tags, $taxonomy, $append);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue