CoreFiles by mySites.guru
wp-pass.php20 lines, 494 bytes, from wordpress-3.1.zip
Raw History Compare with 3.0.6
md5
4765b38c6a2b3b17da080049489923ee
sha1
70465e37333f7bdf46b1a39bd93d77fe6200f76b
sha256
24d2460ea6a0ec6d760d7ccd904101f8eb93da955b55a2e310c3795e04408679
<?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');

if ( get_magic_quotes_gpc() )
	$_POST['post_password'] = stripslashes($_POST['post_password']);

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

wp_safe_redirect(wp_get_referer());
exit;
?>

The same content is in 18 releases, WordPress 3.1-beta2 to 3.2.1. See them all, or every version of this file.