Make WordPress Core

Changeset 34700


Ignore:
Timestamp:
09/29/2015 09:27:40 PM (9 years ago)
Author:
johnbillion
Message:

Deprecate force_ssl_login(), which is simply a wrapper for force_ssl_admin() and is not used in core.

Fixes #34011

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r34566 r34700  
    36213621    return $headers;
    36223622}
     3623
     3624/**
     3625 * Whether SSL login should be forced.
     3626 *
     3627 * @since 2.6.0
     3628 * @deprecated 4.4.0 Use force_ssl_admin()
     3629 *
     3630 * @param string|bool $force Optional Whether to force SSL login. Default null.
     3631 * @return bool True if forced, false if not forced.
     3632 */
     3633function force_ssl_login( $force = null ) {
     3634    _deprecated_function( __FUNCTION__, '4.4', 'force_ssl_admin()' );
     3635    return force_ssl_admin( $force );
     3636}
  • trunk/src/wp-includes/functions.php

    r34566 r34700  
    37673767
    37683768/**
    3769  * Whether SSL login should be forced.
    3770  *
    3771  * @since 2.6.0
    3772  *
    3773  * @see force_ssl_admin()
    3774  *
    3775  * @param string|bool $force Optional Whether to force SSL login. Default null.
    3776  * @return bool True if forced, false if not forced.
    3777  */
    3778 function force_ssl_login( $force = null ) {
    3779     return force_ssl_admin( $force );
    3780 }
    3781 
    3782 /**
    37833769 * Whether to force SSL used for the Administration Screens.
    37843770 *
Note: See TracChangeset for help on using the changeset viewer.