WordPress.org

Make WordPress Core

Ticket #34011: 34011.patch

File 34011.patch, 1.3 KB (added by johnbillion, 5 years ago)
  • src/wp-includes/deprecated.php

     
    36203620
    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}
  • src/wp-includes/functions.php

     
    37663766}
    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 *
    37853771 * @since 2.6.0