diff --git a/wp-admin/upload-functions.php b/wp-admin/upload-functions.php index 45fece481e..75e0b3bdd3 100644 --- a/wp-admin/upload-functions.php +++ b/wp-admin/upload-functions.php @@ -355,3 +355,5 @@ function wp_upload_admin_head() { echo ""; } } + +?> \ No newline at end of file diff --git a/wp-includes/functions.php b/wp-includes/functions.php index c9d46a67f1..dbd8e0f1bc 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -826,8 +826,8 @@ function add_query_arg() { $ret .= "$k=$v"; } } - $ret = trim($ret, '?'); $ret = $protocol . $base . $ret . $frag; + $ret = trim($ret, '?'); return $ret; }