summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAndrew Nacin <nacin@git.wordpress.org>2013-06-19 08:36:46 +0000
committerAndrew Nacin <nacin@git.wordpress.org>2013-06-19 08:36:46 +0000
commite782b625cec002673ec3adede7d872db8e0be5fb (patch)
tree046346bbc0681b2c2f588c148dad04078b21fa2a
parent55ae23052dcaaf0eb35ecb1e3f9029abab3d51af (diff)
downloadwordpress-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.php4
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 {