CoreFiles by mySites.guru
wp-pass.php17 lines, 413 bytes, from wordpress-3.3.zip
Raw History Compare with 3.2.1
md5
9e71ca9b665afc1c4804b60a8cec4e50
sha1
a5f34a97d7d6baf992e7a727f969a4d711616f88
sha256
c2c0c0b24a3a2c8bc561e106ac4794602703744d170df9de7abc971359e4731a
<?php
/**
 * Creates the password cookie and redirects back to where the
 * visitor was before.
 *
 * @package WordPress
 */

/** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . '/wp-load.php');

// 10 days
setcookie('wp-postpass_' . COOKIEHASH, stripslashes( $_POST['post_password'] ), time() + 864000, COOKIEPATH);

wp_safe_redirect(wp_get_referer());
exit;
?>

The same content is in 12 releases, WordPress 3.3-beta1 to 3.3.3. See them all, or every version of this file.