Make WordPress Core

Ticket #39385: 39385.2.patch

File 39385.2.patch, 399 bytes (added by dotancohen, 6 years ago)
  • wp-includes/user.php

    diff --git wp-includes/user.php wp-includes/user.php
    index ef3bc57d..a4b6c509 100644
    function wp_signon( $credentials = array(), $secure_cookie = '' ) { 
    9898        }
    9999
    100100        wp_set_auth_cookie($user->ID, $credentials['remember'], $secure_cookie);
     101        wp_set_current_user($user);
     102
    101103        /**
    102104         * Fires after the user has successfully logged in.
    103105         *