From 005801879992ae94220df18234dc749537add575 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 29 Sep 2015 21:27:40 +0000 Subject: [PATCH] Deprecate `force_ssl_login()`, which is simply a wrapper for `force_ssl_admin()` and is not used in core. Fixes #34011 git-svn-id: https://develop.svn.wordpress.org/trunk@34700 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/deprecated.php | 14 ++++++++++++++ src/wp-includes/functions.php | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php index c5f839cce8..7f46f78ae7 100644 --- a/src/wp-includes/deprecated.php +++ b/src/wp-includes/deprecated.php @@ -3620,3 +3620,17 @@ function wp_get_http( $url, $file_path = false, $red = 1 ) { return $headers; } + +/** + * Whether SSL login should be forced. + * + * @since 2.6.0 + * @deprecated 4.4.0 Use force_ssl_admin() + * + * @param string|bool $force Optional Whether to force SSL login. Default null. + * @return bool True if forced, false if not forced. + */ +function force_ssl_login( $force = null ) { + _deprecated_function( __FUNCTION__, '4.4', 'force_ssl_admin()' ); + return force_ssl_admin( $force ); +} diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index ca6e139a77..b6583374b1 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -3765,20 +3765,6 @@ function is_ssl() { return false; } -/** - * Whether SSL login should be forced. - * - * @since 2.6.0 - * - * @see force_ssl_admin() - * - * @param string|bool $force Optional Whether to force SSL login. Default null. - * @return bool True if forced, false if not forced. - */ -function force_ssl_login( $force = null ) { - return force_ssl_admin( $force ); -} - /** * Whether to force SSL used for the Administration Screens. *