Ticket #13383: 13383.network.diff
File 13383.network.diff, 2.3 KB (added by , 14 years ago) |
---|
-
wp-admin/network.php
96 96 <?php screen_icon(); ?> 97 97 <h2><?php echo esc_html( $title ); ?></h2> 98 98 99 <form method="post" action="">100 99 <?php 101 100 /** 102 101 * Prints step 1 for Network installation process. … … 109 108 function network_step1( $errors = false ) { 110 109 111 110 if ( get_option( 'siteurl' ) != get_option( 'home' ) ) { 112 echo '<div class="error"><p><strong>' . __('Error:') . '</strong> ' . sprintf( __( 'Your <strong>WordPress address</strong> must match your <strong>Site address</strong> before creating a Network. See <a href="%s">General Settings</a>.' ), esc_url( admin_url( 'options-general.php' ) ) ) . '</ strong></p></div>';111 echo '<div class="error"><p><strong>' . __('Error:') . '</strong> ' . sprintf( __( 'Your <strong>WordPress address</strong> must match your <strong>Site address</strong> before creating a Network. See <a href="%s">General Settings</a>.' ), esc_url( admin_url( 'options-general.php' ) ) ) . '</p></div>'; 113 112 echo '</div>'; 114 113 include ('./admin-footer.php' ); 115 114 die(); … … 126 125 $hostname = get_clean_basedomain(); 127 126 $has_ports = strstr( $hostname, ':' ); 128 127 if ( ( false !== $has_ports && ! in_array( $has_ports, array( ':80', ':443' ) ) ) ) { 129 echo '<div class="error"><p><strong>' . __( 'Error:') . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ) . '</ strong></p></div>';128 echo '<div class="error"><p><strong>' . __( 'Error:') . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ) . '</p></div>'; 130 129 echo '<p>' . sprintf( __( 'You cannot use port numbers such as <code>%s</code>.' ), $has_ports ) . '</p>'; 131 130 echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Return to Dashboard' ) . '</a>'; 132 131 echo '</div>'; … … 134 133 die(); 135 134 } 136 135 136 echo '<form method="post" action="">'; 137 137 138 wp_nonce_field( 'install-network-1' ); 138 139 139 140 $error_codes = array(); … … 244 245 </tr> 245 246 </table> 246 247 <p class='submit'><input class="button-primary" name='submit' type='submit' value='<?php esc_attr_e( 'Install' ); ?>' /></p> 248 </form> 247 249 <?php 248 250 } 249 251 … … 390 392 network_step1(); 391 393 } 392 394 ?> 393 </form>394 395 </div> 395 396 396 397 <?php include( './admin-footer.php' ); ?>