From 40d7f7bd18a53bc6725ed73f9a88928693211209 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 20 Nov 2008 03:06:21 +0000 Subject: [PATCH] Remove trim. fixes #8252 git-svn-id: https://develop.svn.wordpress.org/trunk@9803 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 1 - 1 file changed, 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 3dc5bb90c9..94de9ce62a 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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); }