Changeset 35772 for trunk/src/wp-includes/user.php
- Timestamp:
- 12/04/2015 11:24:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r35764 r35772 1332 1332 1333 1333 if ( in_array( strtolower( $user_login ), array_map( 'strtolower', $illegal_logins ) ) ) { 1334 return new WP_Error( 'i llegal_user_login', __( 'Sorry, that username is not allowed.' ) );1334 return new WP_Error( 'invalid_username', __( 'Sorry, that username is not allowed.' ) ); 1335 1335 } 1336 1336 … … 2125 2125 } elseif ( username_exists( $sanitized_user_login ) ) { 2126 2126 $errors->add( 'username_exists', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' ) ); 2127 2128 } else { 2129 /** This filter is documented in wp-includes/user.php */ 2130 $illegal_user_logins = array_map( 'strtolower', (array) apply_filters( 'illegal_user_logins', array() ) ); 2131 if ( in_array( strtolower( $sanitized_user_login ), $illegal_user_logins ) ) { 2132 $errors->add( 'invalid_username', __( '<strong>ERROR</strong>: Sorry, that username is not allowed.' ) ); 2133 } 2127 2134 } 2128 2135
Note: See TracChangeset
for help on using the changeset viewer.