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:
ryan
2008-06-11 17:25:55 +00:00
parent b666a1c910
commit 6adcab8b27
8 changed files with 188 additions and 62 deletions

View File

@@ -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;
}
?>