Ticket #21994: 21994.diff
| File 21994.diff, 1.5 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/network/site-new.php
60 60 wp_die( __( 'Invalid email address.' ) ); 61 61 62 62 if ( is_subdomain_install() ) { 63 if ( strlen( $domain ) > 63 ) { 64 wp_die( __( 'Subdomain labels must be 63 characters or less.' ) ); 65 } 66 63 67 $newdomain = $domain . '.' . preg_replace( '|^www\.|', '', $current_site->domain ); 68 if ( strlen( $newdomain ) > 255 ) { 69 wp_die( __( 'A full domain name is limited to 255 characters (including the separators).' ) ); 70 } 71 64 72 $path = $current_site->path; 65 73 } else { 66 74 $newdomain = $current_site->domain; … … 126 134 <th scope="row"><?php _e( 'Site Address' ) ?></th> 127 135 <td> 128 136 <?php if ( is_subdomain_install() ) { ?> 129 <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>137 <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> 130 138 <?php } else { 131 139 echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="regular-text" type="text" title="<?php esc_attr_e( 'Domain' ) ?>"/> 132 140 <?php }