From 98b02c5e7c18f2c4ba9b4b2022e8db13f344ef6d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 24 Jun 2006 18:17:10 +0000 Subject: [PATCH] Have wp_referer_field() set the referer to the current page. fixes #2800 git-svn-id: https://develop.svn.wordpress.org/trunk@3919 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()));