Remove unneeded get_userdata call. Props DD32. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6531 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
00db74c820
commit
cdbb434e6a
|
@ -372,8 +372,6 @@ endif;
|
||||||
|
|
||||||
if ( !function_exists('wp_set_auth_cookie') ) :
|
if ( !function_exists('wp_set_auth_cookie') ) :
|
||||||
function wp_set_auth_cookie($user_id, $remember = false) {
|
function wp_set_auth_cookie($user_id, $remember = false) {
|
||||||
$user = get_userdata($user_id);
|
|
||||||
|
|
||||||
if ( $remember ) {
|
if ( $remember ) {
|
||||||
$expiration = $expire = time() + 1209600;
|
$expiration = $expire = time() + 1209600;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue