From e344771fa78bbe2e698e0f916b1bdb6fa2bc22fe Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@3919 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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()));