mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Forcing SSL logins now forces SSL for the entire admin, with no middle ground.
fixes #10267. git-svn-id: https://develop.svn.wordpress.org/trunk@28609 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -247,16 +247,17 @@ function wp_ssl_constants() {
|
||||
/**
|
||||
* @since 2.6.0
|
||||
*/
|
||||
if ( !defined('FORCE_SSL_ADMIN') )
|
||||
define('FORCE_SSL_ADMIN', false);
|
||||
force_ssl_admin(FORCE_SSL_ADMIN);
|
||||
if ( !defined( 'FORCE_SSL_ADMIN' ) )
|
||||
define( 'FORCE_SSL_ADMIN', false );
|
||||
force_ssl_admin( FORCE_SSL_ADMIN );
|
||||
|
||||
/**
|
||||
* @since 2.6.0
|
||||
* @deprecated 4.0.0
|
||||
*/
|
||||
if ( !defined('FORCE_SSL_LOGIN') )
|
||||
define('FORCE_SSL_LOGIN', false);
|
||||
force_ssl_login(FORCE_SSL_LOGIN);
|
||||
if ( defined( 'FORCE_SSL_LOGIN' ) && FORCE_SSL_LOGIN ) {
|
||||
force_ssl_admin( true );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user