Changeset 34947 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 10/08/2015 05:28:34 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/pluggable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r34924 r34947 27 27 global $current_user; 28 28 29 if ( isset( $current_user ) && ( $current_user instanceof WP_User ) && ( $id == $current_user->ID ) ) 29 // If `$id` matches the user who's already current, there's nothing to do. 30 if ( isset( $current_user ) 31 && ( $current_user instanceof WP_User ) 32 && ( $id == $current_user->ID ) 33 && ( null !== $id ) 34 ) { 30 35 return $current_user; 36 } 31 37 32 38 $current_user = new WP_User( $id, $name );
Note: See TracChangeset
for help on using the changeset viewer.