WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/27/2016 03:38:47 PM (5 years ago)
Author:
jeremyfelt
Message:

Multisite: Remove redundant is_multisite() checks in network admin templates.

wp-admin/network/admin.php is required by all of the individual network templates and begins with an is_multisite() check of its own. Because of this, we can remove the 26 other checks in the individual templates.

Props flixos90.
Fixes #37447.

File:
1 edited

Legend:

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

    r37488 r38657  
    1313require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );
    1414
    15 if ( ! is_multisite() )
     15// Do not remove this check. It is required by individual network admin pages.
     16if ( ! is_multisite() ) {
    1617    wp_die( __( 'Multisite support is not enabled.' ) );
     18}
    1719
    1820$redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path );
Note: See TracChangeset for help on using the changeset viewer.