Make WordPress Core


Ignore:
Timestamp:
05/29/2014 03:58:41 AM (10 years ago)
Author:
nacin
Message:

Forcing SSL logins now forces SSL for the entire admin, with no middle ground.

fixes #10267.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-constants.php

    r28569 r28609  
    248248     * @since 2.6.0
    249249     */
    250     if ( !defined('FORCE_SSL_ADMIN') )
    251         define('FORCE_SSL_ADMIN', false);
    252     force_ssl_admin(FORCE_SSL_ADMIN);
    253 
    254     /**
    255      * @since 2.6.0
    256      */
    257     if ( !defined('FORCE_SSL_LOGIN') )
    258         define('FORCE_SSL_LOGIN', false);
    259     force_ssl_login(FORCE_SSL_LOGIN);
     250    if ( !defined( 'FORCE_SSL_ADMIN' ) )
     251        define( 'FORCE_SSL_ADMIN', false );
     252    force_ssl_admin( FORCE_SSL_ADMIN );
     253
     254    /**
     255     * @since 2.6.0
     256     * @deprecated 4.0.0
     257     */
     258    if ( defined( 'FORCE_SSL_LOGIN' ) && FORCE_SSL_LOGIN ) {
     259        force_ssl_admin( true );
     260    }
    260261}
    261262
Note: See TracChangeset for help on using the changeset viewer.