Remove unneeded get_userdata call. Props DD32. see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d13d567b22
commit
6aafd77e36
|
@ -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