Ticket #20845: 20845.patch
File 20845.patch, 579 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/pluggable.php
27 27 function wp_set_current_user($id, $name = '') { 28 28 global $current_user; 29 29 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 ) ) 31 31 return $current_user; 32 32 33 33 $current_user = new WP_User( $id, $name );