Introduce logged_in cookie. Deliver auth cookies only to wp-admin. see #7001
git-svn-id: http://svn.automattic.com/wordpress/trunk@8069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -332,6 +332,13 @@ if ( !defined('AUTH_COOKIE') )
|
||||
if ( !defined('SECURE_AUTH_COOKIE') )
|
||||
define('SECURE_AUTH_COOKIE', 'wordpress_sec_' . COOKIEHASH);
|
||||
|
||||
/**
|
||||
* It is possible to define this in wp-config.php
|
||||
* @since 2.6
|
||||
*/
|
||||
if ( !defined('LOGGED_IN_COOKIE') )
|
||||
define('LOGGED_IN_COOKIE', 'wordpress_logged_in_' . COOKIEHASH);
|
||||
|
||||
/**
|
||||
* It is possible to define this in wp-config.php
|
||||
* @since 2.3.0
|
||||
@@ -359,7 +366,23 @@ if ( !defined('SITECOOKIEPATH') )
|
||||
*/
|
||||
if ( !defined('COOKIE_DOMAIN') )
|
||||
define('COOKIE_DOMAIN', false);
|
||||
|
||||
|
||||
/**
|
||||
* It is possible to define this in wp-config.php
|
||||
* @since 2.6
|
||||
*/
|
||||
if ( !defined('FORCE_SSL_ADMIN') )
|
||||
define('FORCE_SSL_ADMIN', false);
|
||||
force_ssl_admin(FORCE_SSL_ADMIN);
|
||||
|
||||
/**
|
||||
* It is possible to define this in wp-config.php
|
||||
* @since 2.6
|
||||
*/
|
||||
if ( !defined('FORCE_SSL_LOGIN') )
|
||||
define('FORCE_SSL_LOGIN', false);
|
||||
force_ssl_login(FORCE_SSL_LOGIN);
|
||||
|
||||
/**
|
||||
* It is possible to define this in wp-config.php
|
||||
* @since 2.5.0
|
||||
|
||||
Reference in New Issue
Block a user