Changeset 47550 for trunk/src/wp-includes/user.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r47412 r47550 1239 1239 function sanitize_user_field( $field, $value, $user_id, $context ) { 1240 1240 $int_fields = array( 'ID' ); 1241 if ( in_array( $field, $int_fields ) ) {1241 if ( in_array( $field, $int_fields, true ) ) { 1242 1242 $value = (int) $value; 1243 1243 } … … 3112 3112 if ( ! empty( $session_token[ $key ] ) ) { 3113 3113 $value = $session_token[ $key ]; 3114 if ( in_array( $key, array( 'expiration', 'login' ) ) ) {3114 if ( in_array( $key, array( 'expiration', 'login' ), true ) ) { 3115 3115 $value = date_i18n( 'F d, Y H:i A', $value ); 3116 3116 }
Note: See TracChangeset
for help on using the changeset viewer.