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: http://core.svn.wordpress.org/trunk@24444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-06-19 08:33:10 +00:00
parent 5f1a1eb77c
commit 7addff9967
1 changed files with 2 additions and 2 deletions

View File

@ -655,10 +655,10 @@ function add_query_arg() {
else else
$frag = ''; $frag = '';
if ( 0 === stripos( 'http://', $uri ) ) { if ( 0 === stripos( $uri, 'http://' ) ) {
$protocol = 'http://'; $protocol = 'http://';
$uri = substr( $uri, 7 ); $uri = substr( $uri, 7 );
} elseif ( 0 === stripos( 'https://', $uri ) ) { } elseif ( 0 === stripos( $uri, 'https://' ) ) {
$protocol = 'https://'; $protocol = 'https://';
$uri = substr( $uri, 8 ); $uri = substr( $uri, 8 );
} else { } else {