\s is not a valid escape sequence. Props xknown. fixes #5539

git-svn-id: http://svn.automattic.com/wordpress/trunk@6501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-12-27 08:09:31 +00:00
parent 6d6280b7a2
commit 545e8a3e76
1 changed files with 5 additions and 5 deletions

View File

@ -1193,7 +1193,7 @@ function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) {
if ( empty($tags) ) if ( empty($tags) )
$tags = array(); $tags = array();
$tags = (is_array($tags)) ? $tags : explode( ',', trim($tags, " \s\n\t\r\0\x0B,") ); $tags = (is_array($tags)) ? $tags : explode( ',', trim($tags, " \n\t\r\0\x0B,") );
wp_set_object_terms($post_id, $tags, 'post_tag', $append); wp_set_object_terms($post_id, $tags, 'post_tag', $append);
} }