Use wp_get_referer(). Props robmiller. fixes #2855
git-svn-id: http://svn.automattic.com/wordpress/trunk@3921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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());
|
||||
?>
|
||||
Reference in New Issue
Block a user