From d0ebb97b4ec4eb689a132b0c1f2488a475142266 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 19 Jun 2013 08:33:10 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 4a4a944e84..a8efacfe85 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 {