mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
Remove trim. fixes #8252
git-svn-id: http://svn.automattic.com/wordpress/trunk@9803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4b253013e2
commit
b6c9d89527
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user