WordPress.org

Make WordPress Core

Ticket #21994: wp-subdomain-maxlength-REV1.diff

File wp-subdomain-maxlength-REV1.diff, 950 bytes (added by humanshell, 2 years ago)
  • wp-admin/network/site-new.php

     
    123123                        <th scope="row"><?php _e( 'Site Address' ) ?></th> 
    124124                        <td> 
    125125                        <?php if ( is_subdomain_install() ) { ?> 
    126                                 <input name="blog[domain]" type="text" class="regular-text" title="<?php esc_attr_e( 'Domain' ) ?>"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span> 
     126                                <input name="blog[domain]" type="text" class="regular-text" title="<?php esc_attr_e( 'Domain' ) ?>" maxlength="63"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span> 
    127127                        <?php } else { 
    128128                                echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="regular-text" type="text" title="<?php esc_attr_e( 'Domain' ) ?>"/> 
    129129                        <?php }