From 99d63ca220601cd7a561d6c5db808d85f99dbcb4 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 24 Jun 2006 21:14:58 +0000 Subject: [PATCH] Use wp_get_referer(). Props robmiller. fixes #2855 git-svn-id: http://svn.automattic.com/wordpress/trunk@3921 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 4 ++-- wp-admin/edit-form.php | 2 +- wp-pass.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 3ec7a6d07c..782c525a19 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -164,10 +164,10 @@ if ('publish' != $post->post_status || 0 == $post_ID) {

diff --git a/wp-admin/edit-form.php b/wp-admin/edit-form.php index dd4bc75836..3837fa3f31 100644 --- a/wp-admin/edit-form.php +++ b/wp-admin/edit-form.php @@ -64,7 +64,7 @@ edCanvas = document.getElementById('content'); '; } ?> - +

diff --git a/wp-pass.php b/wp-pass.php index d7d23a66ce..e1cb4e055e 100644 --- a/wp-pass.php +++ b/wp-pass.php @@ -7,5 +7,5 @@ if ( get_magic_quotes_gpc() ) // 10 days setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH); -wp_redirect($_SERVER['HTTP_REFERER']); +wp_redirect(wp_get_referer()); ?> \ No newline at end of file