Make WordPress Core

Ticket #20845: 20845.patch

File 20845.patch, 579 bytes (added by barrykooij, 11 years ago)
  • src/wp-includes/pluggable.php

     
    2727function wp_set_current_user($id, $name = '') {
    2828        global $current_user;
    2929
    30         if ( isset( $current_user ) && ( $current_user instanceof WP_User ) && ( $id == $current_user->ID ) )
     30        if ( isset( $current_user ) && ( $current_user instanceof WP_User ) && ( $id === $current_user->ID ) )
    3131                return $current_user;
    3232
    3333        $current_user = new WP_User( $id, $name );