WordPress.org

Make WordPress Core

Ticket #13842: maxlength.diff

File maxlength.diff, 1.6 KB (added by niallkennedy, 8 years ago)

Set maxlength of user_login to 60 to match database value.

  • wp-signup.php

     
    7676        <?php }
    7777
    7878        if ( !is_subdomain_install() )
    79                 echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="'. esc_attr($blogname) .'" maxlength="50" /><br />';
     79                echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="'. esc_attr($blogname) .'" maxlength="60" /><br />';
    8080        else
    81                 echo '<input name="blogname" type="text" id="blogname" value="'.esc_attr($blogname).'" maxlength="50" /><span class="suffix_address">.' . ( $site_domain = preg_replace( '|^www\.|', '', $current_site->domain ) ) . '</span><br />';
     81                echo '<input name="blogname" type="text" id="blogname" value="'.esc_attr($blogname).'" maxlength="60" /><span class="suffix_address">.' . ( $site_domain = preg_replace( '|^www\.|', '', $current_site->domain ) ) . '</span><br />';
    8282
    8383        if ( !is_user_logged_in() ) {
    8484                print '(<strong>' . __( 'Your address will be ' );
     
    132132        if ( $errmsg = $errors->get_error_message('user_name') ) {
    133133                echo '<p class="error">'.$errmsg.'</p>';
    134134        }
    135         echo '<input name="user_name" type="text" id="user_name" value="'. esc_attr($user_name) .'" maxlength="50" /><br />';
     135        echo '<input name="user_name" type="text" id="user_name" value="'. esc_attr($user_name) .'" maxlength="60" /><br />';
    136136        _e( '(Must be at least 4 characters, letters and numbers only.)' );
    137137        ?>
    138138