Introducing wp_redirect(), first cut. http://mosquito.wordpress.org/view.php?id=592 Props: Toby Simmons

git-svn-id: https://develop.svn.wordpress.org/trunk@2436 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-03-13 16:36:09 +00:00
parent 73b0feb5b8
commit df3fb34a70
8 changed files with 21 additions and 9 deletions

View File

@@ -7,6 +7,5 @@ if ( get_magic_quotes_gpc() )
// 10 days
setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
header('Location: ' . $_SERVER['HTTP_REFERER']);
wp_redirect($_SERVER['HTTP_REFERER']);
?>