Make WordPress Core

Ticket #45032: 45032.diff

File 45032.diff, 553 bytes (added by nielsdeblaauw, 8 years ago)
  • src/wp-includes/pluggable.php

     
    2626        function wp_set_current_user( $id, $name = '' ) {
    2727                global $current_user;
    2828
    29                 // If `$id` matches the user who's already current, there's nothing to do.
     29                // If `$id` matches the current user, there's nothing to do.
    3030                if ( isset( $current_user )
    3131                && ( $current_user instanceof WP_User )
    3232                && ( $id == $current_user->ID )