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
1 changed files with 5 additions and 5 deletions

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
);