Changeset 35189 for trunk/src/wp-admin/includes/user.php
- Timestamp:
- 10/15/2015 05:42:05 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r35170 r35189 142 142 if ( !$update && username_exists( $user->user_login ) ) 143 143 $errors->add( 'user_login', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' )); 144 145 /** This filter is documented in wp-includes/user-functions.php */ 146 $usernames = apply_filters( 'illegal_user_logins', array() ); 147 if ( in_array( $user->user_login, $usernames ) ) { 148 $errors->add( 'illegal_user_login', __( '<strong>ERROR</strong>: Sorry, that username is not allowed.' ) ); 149 } 144 150 145 151 /* checking email address */
Note: See TracChangeset
for help on using the changeset viewer.