\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:
parent
6d6280b7a2
commit
545e8a3e76
|
@ -1193,7 +1193,7 @@ function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) {
|
|||
|
||||
if ( empty($tags) )
|
||||
$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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue