Changeset 46804 for trunk/src/wp-includes/user.php
- Timestamp:
- 11/29/2019 10:02:30 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r46685 r46804 1585 1585 $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() ); 1586 1586 1587 if ( in_array( strtolower( $user_login ), array_map( 'strtolower', $illegal_logins ) ) ) {1587 if ( in_array( strtolower( $user_login ), array_map( 'strtolower', $illegal_logins ), true ) ) { 1588 1588 return new WP_Error( 'invalid_username', __( 'Sorry, that username is not allowed.' ) ); 1589 1589 } … … 2504 2504 /** This filter is documented in wp-includes/user.php */ 2505 2505 $illegal_user_logins = (array) apply_filters( 'illegal_user_logins', array() ); 2506 if ( in_array( strtolower( $sanitized_user_login ), array_map( 'strtolower', $illegal_user_logins ) ) ) {2506 if ( in_array( strtolower( $sanitized_user_login ), array_map( 'strtolower', $illegal_user_logins ), true ) ) { 2507 2507 $errors->add( 'invalid_username', __( '<strong>ERROR</strong>: Sorry, that username is not allowed.' ) ); 2508 2508 }
Note: See TracChangeset
for help on using the changeset viewer.