mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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:
parent
99c9ef1a59
commit
f7703c03d3
@ -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
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user