Changeset 46088 for trunk/src/wp-includes/user.php
- Timestamp:
- 09/10/2019 07:22:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r45932 r46088 2504 2504 } else { 2505 2505 /** This filter is documented in wp-includes/user.php */ 2506 $illegal_user_logins = array_map( 'strtolower', (array) apply_filters( 'illegal_user_logins', array()) );2507 if ( in_array( strtolower( $sanitized_user_login ), $illegal_user_logins) ) {2506 $illegal_user_logins = (array) apply_filters( 'illegal_user_logins', array() ); 2507 if ( in_array( strtolower( $sanitized_user_login ), array_map( 'strtolower', $illegal_user_logins ) ) ) { 2508 2508 $errors->add( 'invalid_username', __( '<strong>ERROR</strong>: Sorry, that username is not allowed.' ) ); 2509 2509 }
Note: See TracChangeset
for help on using the changeset viewer.