mirror of
git://develop.git.wordpress.org/
synced 2025-01-31 12:29:09 +01:00
Missing change from last commit.
git-svn-id: https://develop.svn.wordpress.org/trunk@5227 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c144679edf
commit
4c1d1977b7
@ -1074,7 +1074,7 @@ function clean_url( $url, $protocols = null ) {
|
||||
$url = str_replace(';//', '://', $url);
|
||||
// Append http unless a relative link starting with / or a php file.
|
||||
if ( strpos($url, '://') === false &&
|
||||
substr( $url, 0, 1 ) != '/' && !preg_match('/^[a-z0-9]+?\.php/i', $url) )
|
||||
substr( $url, 0, 1 ) != '/' && !preg_match('/^[a-z0-9-]+?\.php/i', $url) )
|
||||
$url = 'http://' . $url;
|
||||
|
||||
$url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user