diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 36146132d7..77aaf718b1 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1899,7 +1899,8 @@ function wp_nonce_field( $action = -1, $name = '_wpnonce', $referer = true, $ech * @return string Referer field HTML markup. */ function wp_referer_field( $echo = true ) { - $referer_field = ''; + $request_url = remove_query_arg( '_wp_http_referer' ); + $referer_field = ''; if ( $echo ) { echo $referer_field; diff --git a/wp-includes/version.php b/wp-includes/version.php index d9db507da6..af0db8d8cd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-beta3-54448'; +$wp_version = '6.1-beta3-54449'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.