source: trunk/blogs/wp-pass.php @ 1941

Revision 1941, 413 bytes checked in by Xiping.Wang, 4 months ago (diff)

[trunk] update wordpress to 3.3.1

Line 
1<?php
2/**
3 * Creates the password cookie and redirects back to where the
4 * visitor was before.
5 *
6 * @package WordPress
7 */
8
9/** Make sure that the WordPress bootstrap has run before continuing. */
10require( dirname(__FILE__) . '/wp-load.php');
11
12// 10 days
13setcookie('wp-postpass_' . COOKIEHASH, stripslashes( $_POST['post_password'] ), time() + 864000, COOKIEPATH);
14
15wp_safe_redirect(wp_get_referer());
16exit;
17?>
Note: See TracBrowser for help on using the repository browser.