Remove trim. fixes #8252

git-svn-id: https://develop.svn.wordpress.org/trunk@9803 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-20 03:06:21 +00:00
parent 807877938e
commit 40d7f7bd18
1 changed files with 0 additions and 1 deletions

View File

@ -1677,7 +1677,6 @@ function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) {
if ( empty($tags) )
$tags = array();
$tags = (is_array($tags)) ? $tags : explode( ',', trim($tags, " \n\t\r\0\x0B,") );
$tags = array_map('trim', $tags); //Trim whitespace from around the tags.
wp_set_object_terms($post_id, $tags, 'post_tag', $append);
}