CoreFiles by mySites.guru
wp-pass.php19 lines, 487 bytes, from wordpress-2.9.zip
Raw History Compare with 2.8.6
md5
b2d13ddac2f77eaeb09717da09b21e53
sha1
4f53e828feb1c809ca056f033bc2a0b4993b7c7d
sha256
1b9600bf8ba6d79bf57e96df670488f17cd1596e25c7ae9a8f74f6beb9fbb448
<?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());
?>

The same content is in 36 releases, WordPress 2.8-beta1 to 3.1-beta1. See them all, or every version of this file.