Ticket #5367: 5367.diff

File 5367.diff, 441 bytes (added by DD32, 5 years ago)
Line 
1Index: wp-includes/pluggable.php
2===================================================================
3--- wp-includes/pluggable.php   (revision 6530)
4+++ wp-includes/pluggable.php   (working copy)
5@@ -372,8 +372,6 @@
6 
7 if ( !function_exists('wp_set_auth_cookie') ) :
8 function wp_set_auth_cookie($user_id, $remember = false) {
9-       $user = get_userdata($user_id);
10-
11        if ( $remember ) {
12                $expiration = $expire = time() + 1209600;
13        } else {