mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 14:14:36 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@38657 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -12,8 +12,10 @@ define( 'WP_NETWORK_ADMIN', true );
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );
|
||||
|
||||
if ( ! is_multisite() )
|
||||
// Do not remove this check. It is required by individual network admin pages.
|
||||
if ( ! is_multisite() ) {
|
||||
wp_die( __( 'Multisite support is not enabled.' ) );
|
||||
}
|
||||
|
||||
$redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user