Ticket #14949: 14949.3.diff
File 14949.3.diff, 423 bytes (added by , 5 years ago) |
---|
-
src/wp-login.php
diff --git src/wp-login.php src/wp-login.php index 8822655dd6..8a58cfd214 100644
switch ( $action ) { 1182 1182 1183 1183 $user = wp_signon( array(), $secure_cookie ); 1184 1184 1185 if ( is_wp_error( $user ) && is_user_logged_in() ) { 1186 $user = wp_get_current_user(); 1187 } 1188 1185 1189 if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) { 1186 1190 if ( headers_sent() ) { 1187 1191 $user = new WP_Error(