Make WordPress Core

Changeset 32950


Ignore:
Timestamp:
06/26/2015 01:38:25 AM (10 years ago)
Author:
dd32
Message:

Remove an undeeded space concatenation from wpmu_validate_user_signup().
This was previously used to prevent strpos() returning 0, which is not needed after r32942.
See #32444

File:
1 edited

Legend:

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

    r32942 r32950  
    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.