diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 650f0ee3f8..c4b65284f4 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2122,7 +2122,7 @@ function add_query_arg() { $ret .= "$k=$v"; } } - $ret = $base . $ret; + $ret = $protocol . $base . $ret; return trim($ret, '?'); }