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

fixes #28222.

git-svn-id: https://develop.svn.wordpress.org/trunk@28933 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-06-30 23:08:48 +00:00
parent df6434b9a7
commit 4114ff052f

View File

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