Ticket #20845: 20845-1.patch
File 20845-1.patch, 584 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/pluggable.php
26 26 function wp_set_current_user($id, $name = '') { 27 27 global $current_user; 28 28 29 if ( isset( $current_user ) && ( $current_user instanceof WP_User ) && ( $id == $current_user->ID ) )29 if ( isset( $current_user ) && ( $current_user instanceof WP_User ) && ( $id === $current_user->ID ) ) 30 30 return $current_user; 31 31 32 32 $current_user = new WP_User( $id, $name );