Ticket #38247: 38247.diff
File 38247.diff, 1.1 KB (added by , 7 years ago) |
---|
-
src/wp-admin/network/admin.php
17 17 wp_die( __( 'Multisite support is not enabled.' ) ); 18 18 } 19 19 20 $redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path);20 $redirect_network_admin_request = ! is_main_site(); 21 21 22 22 /** 23 23 * Filters whether to redirect the request to the Network Admin. -
src/wp-admin/user/admin.php
16 16 exit; 17 17 } 18 18 19 $redirect_user_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) ); 19 $redirect_user_admin_request = ! is_main_site(); 20 20 21 /** 21 22 * Filters whether to redirect the request to the User Admin in Multisite. 22 23 *