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:
@@ -1768,4 +1768,29 @@ function validate_file( $file, $allowed_files = '' ) {
|
||||
function is_ssl() {
|
||||
return ( 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false;
|
||||
}
|
||||
|
||||
function force_ssl_login($force = '') {
|
||||
static $forced;
|
||||
|
||||
if ( '' != $force ) {
|
||||
$old_forcded = $forced;
|
||||
$forced = $force;
|
||||
return $old_forced;
|
||||
}
|
||||
|
||||
return $forced;
|
||||
}
|
||||
|
||||
function force_ssl_admin($force = '') {
|
||||
static $forced;
|
||||
|
||||
if ( '' != $force ) {
|
||||
$old_forcded = $forced;
|
||||
$forced = $force;
|
||||
return $old_forced;
|
||||
}
|
||||
|
||||
return $forced;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user