diff options
author | Andrew Nacin <nacin@git.wordpress.org> | 2013-06-19 08:36:46 +0000 |
---|---|---|
committer | Andrew Nacin <nacin@git.wordpress.org> | 2013-06-19 08:36:46 +0000 |
commit | e782b625cec002673ec3adede7d872db8e0be5fb (patch) | |
tree | 046346bbc0681b2c2f588c148dad04078b21fa2a | |
parent | 55ae23052dcaaf0eb35ecb1e3f9029abab3d51af (diff) | |
download | wordpress-e782b625cec002673ec3adede7d872db8e0be5fb.tar.gz wordpress-e782b625cec002673ec3adede7d872db8e0be5fb.zip |
Use correct variable order in add_query_arg(). This had mostly just filled error logs; it also broke some obscure URL situations.
Merges [24444] to the 3.5 branch.
fixes #23284.
git-svn-id: https://develop.svn.wordpress.org/branches/3.5@24445 602fd350-edb4-49c9-b593-d223f7449a82
-rw-r--r-- | wp-includes/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/functions.php b/wp-includes/functions.php index efe6d7a8f0..340e2109ee 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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 { |