Changeset 12883
- Timestamp:
- 01/27/2010 10:10:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network.php
r12865 r12883 151 151 $email = get_option( 'admin_email' ); 152 152 $hostname = get_clean_basedomain(); 153 $invalid_host = false; 154 if ( 'localhost' == $hostname || preg_match( '|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|', $hostname, $match ) ) 155 $invalid_host = true; 153 156 if ( substr( $hostname, 0, 4 ) == 'www.' ) 154 157 $nowww = substr( $hostname, 4 ); … … 175 178 <th scope='row'><?php esc_html_e( 'Server Address' ); ?></th> 176 179 <td> 180 <?php if ( !$invalid_host ) { ?> 177 181 <p><?php printf( __( 'This will be the Internet address of your site: <strong><em>%s</em></strong>.' ), $hostname ); ?></p> 178 182 <input type='hidden' name='basedomain' value='<?php echo esc_attr( $hostname ); ?>' /> 183 <?php } else { ?> 179 184 <p><?php _e( 'Do not use an IP address (like 127.0.0.1) or a single word hostname like <q>localhost</q> as your server address.' ); ?></p> 185 <?php } ?> 180 186 </td> 181 187 </tr> … … 199 205 </tr> 200 206 </table> 207 <?php if ( !$invalid_host ) { ?> 201 208 <p class='submit'><input class="button" name='submit' type='submit' value='<?php esc_attr_e( 'Proceed' ); ?>' /></p> 209 <?php } ?> 202 210 <?php 203 211 }
Note: See TracChangeset
for help on using the changeset viewer.