Make WordPress Core


Ignore:
Timestamp:
11/12/2015 04:33:48 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Cast 'illegal_user_logins' filter result to array.

See #27317.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user-functions.php

    r35629 r35630  
    13291329     * @param array $usernames Array of blacklisted usernames.
    13301330     */
    1331     $illegal_logins = apply_filters( 'illegal_user_logins', array() );
     1331    $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() );
    13321332
    13331333    if ( in_array( strtolower( $user_login ), array_map( 'strtolower', $illegal_logins ) ) ) {
Note: See TracChangeset for help on using the changeset viewer.