Remove free-spacing modifier and extra spaces from wp_extract_urls() pattern.

fixes #28222.
Built from https://develop.svn.wordpress.org/trunk@28933


git-svn-id: http://core.svn.wordpress.org/trunk@28731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2014-06-30 23:09:16 +00:00
parent 99c9ef1a59
commit f7703c03d3

View File

@ -458,17 +458,17 @@ function xmlrpc_removepostdata( $content ) {
function wp_extract_urls( $content ) { function wp_extract_urls( $content ) {
preg_match_all( preg_match_all(
"#(" "#("
. "(?: ([\w-]+:)?//? )" . "(?:([\w-]+:)?//?)"
. "[^\s()<>]+" . "[^\s()<>]+"
. "[.]" . "[.]"
. "(?:" . "(?:"
. "\([\w\d]+\) |" . "\([\w\d]+\)|"
. "(?:" . "(?:"
. "[^`!()\[\]{};:'\".,<>?«»“”‘’\s] |" . "[^`!()\[\]{};:'\".,<>?«»“”‘’\s]|"
. "(?: [:]\d+ )?/?" . "(?:[:]\d+)?/?"
. ")+" . ")+"
. ")" . ")"
. ")#x", . ")#",
$content, $content,
$post_links $post_links
); );