WordPress.org

Make WordPress Core

Changeset 32942


Ignore:
Timestamp:
06/25/2015 04:56:01 PM (6 years ago)
Author:
wonderboymusic
Message:

wpmu_validate_user_signup() should strictly check against false when using strpos().

See #32444.

File:
1 edited

Legend:

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

    r32800 r32942  
    495495        $errors->add('user_name',  __( 'Username must be at least 4 characters.' ) );
    496496
    497     if ( strpos( ' ' . $user_name, '_' ) != false )
     497    if ( strpos( ' ' . $user_name, '_' ) !== false )
    498498        $errors->add( 'user_name', __( 'Sorry, usernames may not contain the character “_”!' ) );
    499499
Note: See TracChangeset for help on using the changeset viewer.