Changeset 46804
- Timestamp:
- 11/29/2019 10:02:30 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r46640 r46804 194 194 $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() ); 195 195 196 if ( in_array( strtolower( $user->user_login ), array_map( 'strtolower', $illegal_logins ) ) ) {196 if ( in_array( strtolower( $user->user_login ), array_map( 'strtolower', $illegal_logins ), true ) ) { 197 197 $errors->add( 'invalid_username', __( '<strong>ERROR</strong>: Sorry, that username is not allowed.' ) ); 198 198 } -
trunk/src/wp-includes/ms-functions.php
r46697 r46804 489 489 $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() ); 490 490 491 if ( in_array( strtolower( $user_name ), array_map( 'strtolower', $illegal_logins ) ) ) {491 if ( in_array( strtolower( $user_name ), array_map( 'strtolower', $illegal_logins ), true ) ) { 492 492 $errors->add( 'user_name', __( 'Sorry, that username is not allowed.' ) ); 493 493 } -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r46696 r46804 1138 1138 $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() ); 1139 1139 1140 if ( in_array( strtolower( $username ), array_map( 'strtolower', $illegal_logins ) ) ) {1140 if ( in_array( strtolower( $username ), array_map( 'strtolower', $illegal_logins ), true ) ) { 1141 1141 return new WP_Error( 'rest_user_invalid_username', __( 'Sorry, that username is not allowed.' ), array( 'status' => 400 ) ); 1142 1142 } -
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.