Changeset 13637 for trunk/wp-admin/network.php
- Timestamp:
- 03/09/2010 10:01:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network.php
r13634 r13637 54 54 $active_plugins = get_option( 'active_plugins' ); 55 55 if ( ! empty( $active_plugins ) ) { 56 printf( '<p>' . __( 'Please <a href="%s">deactivate</a> your plugins before enabling the Network feature. Once the network is created, you may reactivate your plugins.' ) . '</p>', admin_url( 'plugins.php' ) );56 echo '<div class="updated"><p><strong>' . __('Warning:') . '</strong> ' . sprintf( __( 'Please <a href="%s">deactivate</a> your plugins before enabling the Network feature.' ), admin_url( 'plugins.php' ) ) . '</p></div><p>' . __(' Once the network is created, you may reactivate your plugins.' ) . '</p>'; 57 57 include( './admin-footer.php' ); 58 58 die(); … … 60 60 61 61 $hostname = get_clean_basedomain(); 62 if ( preg_match( '|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|', $hostname ) ) { 63 echo '<p><strong>' . __('You cannot install a network of sites with your server address.' ) . '</strong></p>'; 64 echo '<p>' . __('You cannot use an IP address such as <code>127.0.0.1</code>.' ) . '</p>'; 62 $has_ports = strstr( $hostname, ':' ); 63 if ( ( false !== $has_ports && ! in_array( $has_ports, array( ':80', ':443' ) ) ) 64 || ( $no_ip = preg_match( '|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|', $hostname ) ) ) { 65 echo '<div class="error"><p><strong>' . __( 'Error:') . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ) . '</strong></p></div>'; 66 if ( $no_ip ) 67 echo '<p>' . __('You cannot use an IP address such as <code>127.0.0.1</code>.' ) . '</p>'; 68 else 69 echo '<p>' . sprintf( __('You cannot use port numbers such as <code>%s</code>.' ), $has_ports ) . '</p>'; 70 echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Return to Dashboard' ) . '</a>'; 65 71 include( './admin-footer.php' ); 66 72 die(); … … 245 251 </textarea></li> 246 252 </ol> 247 <p> Once you complete these steps, your network is enabled and configured. <a href="<?php echo esc_url( admin_url() ); ?>">Return to Dashboard</a></p>253 <p><?php printf( __( 'Once you complete these steps, your network is enabled and configured.') ); ?> <a href="<?php echo esc_url( admin_url() ); ?>"><?php _e( 'Return to Dashboard' ); ?></a></p> 248 254 <?php 249 255 }
Note: See TracChangeset
for help on using the changeset viewer.