mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Use correct variable order in add_query_arg(). This had mostly just filled error logs; it also broke some obscure URL situations. see #23284.
git-svn-id: https://develop.svn.wordpress.org/trunk@24444 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -655,10 +655,10 @@ function add_query_arg() {
|
||||
else
|
||||
$frag = '';
|
||||
|
||||
if ( 0 === stripos( 'http://', $uri ) ) {
|
||||
if ( 0 === stripos( $uri, 'http://' ) ) {
|
||||
$protocol = 'http://';
|
||||
$uri = substr( $uri, 7 );
|
||||
} elseif ( 0 === stripos( 'https://', $uri ) ) {
|
||||
} elseif ( 0 === stripos( $uri, 'https://' ) ) {
|
||||
$protocol = 'https://';
|
||||
$uri = substr( $uri, 8 );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user