function wp_setcookie($username,
$password = '',
$already_md5 = false,
$home = '',
$siteurl = '',
$remember = false
) { _deprecated_function( __FUNCTION__, '2.5.0', 'wp_set_auth_cookie()'
);
$user =
get_user_by('login',
$username);
wp_set_auth_cookie($user->ID,
$remember);
}else :
_deprecated_function( 'wp_setcookie', '2.5.0', 'wp_set_auth_cookie()'
);
endif;
if ( !
function_exists('wp_clearcookie'
) ) :
/**
* Clears the authentication cookie, logging the user out. This function is deprecated.
*
* @since 1.5.0
* @deprecated 2.5.0 Use wp_clear_auth_cookie()
* @see wp_clear_auth_cookie()
*/