mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
df6434b9a7
commit
4114ff052f
@ -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…
Reference in New Issue
Block a user