mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Force SSL admin when siteurl is explicitly configured with HTTPS.
see #27954. git-svn-id: https://develop.svn.wordpress.org/trunk@28674 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -247,8 +247,13 @@ function wp_ssl_constants() {
|
||||
/**
|
||||
* @since 2.6.0
|
||||
*/
|
||||
if ( !defined( 'FORCE_SSL_ADMIN' ) )
|
||||
define( 'FORCE_SSL_ADMIN', false );
|
||||
if ( !defined( 'FORCE_SSL_ADMIN' ) ) {
|
||||
if ( 'https' === parse_url( get_option( 'siteurl' ), PHP_URL_SCHEME ) ) {
|
||||
define( 'FORCE_SSL_ADMIN', true );
|
||||
} else {
|
||||
define( 'FORCE_SSL_ADMIN', false );
|
||||
}
|
||||
}
|
||||
force_ssl_admin( FORCE_SSL_ADMIN );
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user