Make WordPress Core

Ticket #26784: 26784-01.patch

File 26784-01.patch, 639 bytes (added by DJPaul, 11 years ago)
  • src/wp-includes/ms-functions.php

     
    485485        if ( strlen( $user_name ) < 4 )
    486486                $errors->add('user_name',  __( 'Username must be at least 4 characters.' ) );
    487487
     488        if ( strlen( $user_name ) > 60 ) {
     489                $errors->add( 'user_name', __( 'Username cannot be longer than 60 characters.' ) );
     490        }
     491
    488492        if ( strpos( ' ' . $user_name, '_' ) != false )
    489493                $errors->add( 'user_name', __( 'Sorry, usernames may not contain the character &#8220;_&#8221;!' ) );
    490494