Make WordPress Core

Changeset 14659


Ignore:
Timestamp:
05/15/2010 06:49:16 AM (14 years ago)
Author:
nacin
Message:

Validation for network.php. props dremeda, see #13383.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r14657 r14659  
    9797<h2><?php echo esc_html( $title ); ?></h2>
    9898
    99 <form method="post" action="">
    10099<?php
    101100/**
     
    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' );
     
    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>';
     
    134133        die();
    135134    }
     135
     136    echo '<form method="post" action="">';
    136137
    137138    wp_nonce_field( 'install-network-1' );
     
    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}
     
    391393}
    392394?>
    393 </form>
    394395</div>
    395396
Note: See TracChangeset for help on using the changeset viewer.