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

git-svn-id: https://develop.svn.wordpress.org/trunk@6501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-12-27 08:09:31 +00:00
parent a01ab04c3b
commit c0e11298c2
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);
} }