Edit File by line
/home/barbar84/public_h.../wp-admin/network
File: admin.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WordPress Network Administration Bootstrap
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Multisite
[5] Fix | Delete
* @since 3.1.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
define( 'WP_NETWORK_ADMIN', true );
[9] Fix | Delete
[10] Fix | Delete
/** Load WordPress Administration Bootstrap */
[11] Fix | Delete
require_once dirname( __DIR__ ) . '/admin.php';
[12] Fix | Delete
[13] Fix | Delete
// Do not remove this check. It is required by individual network admin pages.
[14] Fix | Delete
if ( ! is_multisite() ) {
[15] Fix | Delete
wp_die( __( 'Multisite support is not enabled.' ) );
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
$redirect_network_admin_request = ( 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ) );
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Filters whether to redirect the request to the Network Admin.
[22] Fix | Delete
*
[23] Fix | Delete
* @since 3.2.0
[24] Fix | Delete
*
[25] Fix | Delete
* @param bool $redirect_network_admin_request Whether the request should be redirected.
[26] Fix | Delete
*/
[27] Fix | Delete
$redirect_network_admin_request = apply_filters( 'redirect_network_admin_request', $redirect_network_admin_request );
[28] Fix | Delete
[29] Fix | Delete
if ( $redirect_network_admin_request ) {
[30] Fix | Delete
wp_redirect( network_admin_url() );
[31] Fix | Delete
exit;
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
unset( $redirect_network_admin_request );
[35] Fix | Delete
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function