Make WordPress Core

Ticket #45032: 45032.patch

File 45032.patch, 611 bytes (added by AbdulWahab610, 8 years ago)

Fixed

  • 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 user whose already current, there's nothing to do.
    3030                if ( isset( $current_user )
    3131                && ( $current_user instanceof WP_User )
    3232                && ( $id == $current_user->ID )
    … …  
    27372737                return $r;
    27382738        }
    27392739endif;
    2740