CoreFiles by mySites.guru
wp-pass.php19 lines, 487 bytes, from wordpress-2.6.2.zip
Raw History Compare with 2.6.1
md5
dcfae1bdfbec88a8d1e80f771f4c315e
sha1
c403bf738b7721a53d8de9ae8f7a38ae4c81e27b
sha256
2ac0fccf6603e69b85859e40ef6f4b309fb6620f1ea5b92a7b397efb19fab3da
<?php
/**
 * Creates the password cookie and redirects back to where the
 * visitor was before.
 *
 * @package WordPress
 */

/** Make sure that the WordPress bootstrap has ran 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 20 releases, WordPress 2.6-beta1 to 2.7.1. See them all, or every version of this file.