Changeset 45590 for trunk/src/wp-includes/class-wp-user.php
- Timestamp:
- 07/02/2019 11:41:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user.php
r45419 r45590 234 234 235 235 if ( false !== $user_id ) { 236 if ( $user = wp_cache_get( $user_id, 'users' ) ) { 236 $user = wp_cache_get( $user_id, 'users' ); 237 if ( $user ) { 237 238 return $user; 238 239 } 239 240 } 240 241 241 if ( !$user = $wpdb->get_row(242 $user = $wpdb->get_row( 242 243 $wpdb->prepare( 243 244 "SELECT * FROM $wpdb->users WHERE $db_field = %s LIMIT 1", 244 245 $value 245 246 ) 246 ) ) { 247 ); 248 if ( ! $user ) { 247 249 return false; 248 250 }
Note: See TracChangeset
for help on using the changeset viewer.