WordPress.org

Make WordPress Core

Ticket #4939: pluggable.diff

File pluggable.diff, 357 bytes (added by xknown, 7 years ago)

Set current user in check_ajax_referer.

  • wp-includes/pluggable.php

     
    383383        } 
    384384        if ( !wp_login( $user, $pass, true ) ) 
    385385                die('-1'); 
     386 
     387        wp_set_current_user(0, $user); 
    386388        do_action('check_ajax_referer'); 
    387389} 
    388390endif;