Make WordPress Core

Ticket #13383: 13383.network.diff

File 13383.network.diff, 2.3 KB (added by nacin, 14 years ago)

untested

  • wp-admin/network.php

     
    9696<?php screen_icon(); ?>
    9797<h2><?php echo esc_html( $title ); ?></h2>
    9898
    99 <form method="post" action="">
    10099<?php
    101100/**
    102101 * Prints step 1 for Network installation process.
     
    109108function network_step1( $errors = false ) {
    110109
    111110        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>';
    113112                echo '</div>';
    114113                include ('./admin-footer.php' );
    115114                die();
     
    126125        $hostname = get_clean_basedomain();
    127126        $has_ports = strstr( $hostname, ':' );
    128127        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>';
    130129                echo '<p>' . sprintf( __( 'You cannot use port numbers such as <code>%s</code>.' ), $has_ports ) . '</p>';
    131130                echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Return to Dashboard' ) . '</a>';
    132131                echo '</div>';
     
    134133                die();
    135134        }
    136135
     136        echo '<form method="post" action="">';
     137
    137138        wp_nonce_field( 'install-network-1' );
    138139
    139140        $error_codes = array();
     
    244245                        </tr>
    245246                </table>
    246247                <p class='submit'><input class="button-primary" name='submit' type='submit' value='<?php esc_attr_e( 'Install' ); ?>' /></p>
     248        </form>
    247249                <?php
    248250}
    249251
     
    390392        network_step1();
    391393}
    392394?>
    393 </form>
    394395</div>
    395396
    396397<?php include( './admin-footer.php' ); ?>