mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
s/2.4/2.5/. Props ffemtcj. fixes #5810
git-svn-id: https://develop.svn.wordpress.org/trunk@6777 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1228,7 +1228,7 @@ if ( !function_exists('wp_setcookie') ) :
|
||||
* @param bool $remember Optional. Remember that the user is logged in
|
||||
*/
|
||||
function wp_setcookie($username, $password = '', $already_md5 = false, $home = '', $siteurl = '', $remember = false) {
|
||||
_deprecated_function( __FUNCTION__, '2.4', 'wp_set_auth_cookie()' );
|
||||
_deprecated_function( __FUNCTION__, '2.5', 'wp_set_auth_cookie()' );
|
||||
$user = get_userdatabylogin($username);
|
||||
wp_set_auth_cookie($user->ID, $remember);
|
||||
}
|
||||
@@ -1243,7 +1243,7 @@ if ( !function_exists('wp_clearcookie') ) :
|
||||
* @see wp_clear_auth_cookie()
|
||||
*/
|
||||
function wp_clearcookie() {
|
||||
_deprecated_function( __FUNCTION__, '2.4', 'wp_clear_auth_cookie()' );
|
||||
_deprecated_function( __FUNCTION__, '2.5', 'wp_clear_auth_cookie()' );
|
||||
wp_clear_auth_cookie();
|
||||
}
|
||||
endif;
|
||||
@@ -1261,7 +1261,7 @@ if ( !function_exists('wp_get_cookie_login') ):
|
||||
* @return bool Always returns false
|
||||
*/
|
||||
function wp_get_cookie_login() {
|
||||
_deprecated_function( __FUNCTION__, '2.4', '' );
|
||||
_deprecated_function( __FUNCTION__, '2.5', '' );
|
||||
return false;
|
||||
}
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user