diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 4280807ff6..a522e4def4 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -815,8 +815,7 @@ function wp_nonce_field($action = -1) { } function wp_referer_field() { - $ref = ( false === wp_get_referer() ) ? $_SERVER['REQUEST_URI'] : wp_get_referer(); - $ref = wp_specialchars(stripslashes($ref)); + $ref = wp_specialchars($_SERVER['REQUEST_URI']); echo ''; if ( wp_get_original_referer() ) { $original_ref = wp_specialchars(stripslashes(wp_get_original_referer()));