mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Cast 'illegal_user_logins' filter result to array.
See #27317. git-svn-id: https://develop.svn.wordpress.org/trunk@35630 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -432,7 +432,7 @@ function wpmu_validate_user_signup($user_name, $user_email) {
|
||||
}
|
||||
|
||||
/** This filter is documented in wp-includes/user-functions.php */
|
||||
$illegal_logins = apply_filters( 'illegal_user_logins', array() );
|
||||
$illegal_logins = (array) apply_filters( 'illegal_user_logins', array() );
|
||||
|
||||
if ( in_array( strtolower( $user_name ), array_map( 'strtolower', $illegal_logins ) ) ) {
|
||||
$errors->add( 'user_name', __( 'Sorry, that username is not allowed.' ) );
|
||||
|
||||
Reference in New Issue
Block a user