|
Revision 2436, 299 bytes
(checked in by ryan, 4 years ago)
|
Introducing wp_redirect(), first cut. http://mosquito.wordpress.org/view.php?id=592 Props: Toby Simmons
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
require( dirname(__FILE__) . '/wp-config.php'); |
|---|
| 3 |
|
|---|
| 4 |
if ( get_magic_quotes_gpc() ) |
|---|
| 5 |
$_POST['post_password'] = stripslashes($_POST['post_password']); |
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH); |
|---|
| 9 |
|
|---|
| 10 |
wp_redirect($_SERVER['HTTP_REFERER']); |
|---|
| 11 |
?> |
|---|