WordPress 3.4.2
[autoinstalls/wordpress.git] / wp-includes / formatting.php
index f69c9382b568d94328875e7405e8e64bfb67a3f9..fcf519c344f0bbb8cdefcbbbd0e5ff4bd0b92abf 100644 (file)
@@ -3236,7 +3236,7 @@ function sanitize_mime_type( $mime_type ) {
  * @return string URLs starting with the http or https protocol, separated by a carriage return.
  */
 function sanitize_trackback_urls( $to_ping ) {
-       $urls_to_ping = preg_split( '/\r\n\t /', trim( $to_ping ), -1, PREG_SPLIT_NO_EMPTY );
+       $urls_to_ping = preg_split( '/[\r\n\t ]/', trim( $to_ping ), -1, PREG_SPLIT_NO_EMPTY );
        foreach ( $urls_to_ping as $k => $url ) {
                if ( !preg_match( '#^https?://.#i', $url ) )
                        unset( $urls_to_ping[$k] );