Ticket #14949: 14949.2.diff
File 14949.2.diff, 637 bytes (added by , 8 years ago) |
---|
-
src/wp-login.php
788 788 789 789 $user = wp_signon( array(), $secure_cookie ); 790 790 791 $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user); 792 793 if ( is_wp_error( $user ) && is_user_logged_in() ) { 794 $user = wp_get_current_user(); 795 } 796 791 797 if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) { 792 798 if ( headers_sent() ) { 793 799 /* translators: 1: Browser cookie documentation URL, 2: Support forums URL */