WordPress.org

Make WordPress Core

Changeset 16094


Ignore:
Timestamp:
10/29/2010 10:44:05 PM (8 years ago)
Author:
nacin
Message:

Prevent network creation when OMG_DO_NOT_UPGRADE_GLOBAL_TABLES is defined. props wpmuguru, fixes #14246.

File:
1 edited

Legend:

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

    r16061 r16094  
    126126    if ( get_option( 'siteurl' ) != get_option( 'home' ) ) {
    127127        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>';
     128        echo '</div>';
     129        include ('./admin-footer.php' );
     130        die();
     131    }
     132
     133    if ( defined('DO_NOT_UPGRADE_GLOBAL_TABLES') ) {
     134        echo '<div class="error"><p><strong>' . __('Error:') . '</strong> ' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a network.' ) . '</p></div>';
    128135        echo '</div>';
    129136        include ('./admin-footer.php' );
Note: See TracChangeset for help on using the changeset viewer.