diff -r 346c88efed21 -r 5e2f62d02dcd wp/wp-admin/network/admin.php --- a/wp/wp-admin/network/admin.php Mon Jun 08 16:11:51 2015 +0000 +++ b/wp/wp-admin/network/admin.php Tue Jun 09 03:35:32 2015 +0200 @@ -15,7 +15,15 @@ if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); -$redirect_network_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) ); +$redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ); + +/** + * Filter whether to redirect the request to the Network Admin. + * + * @since 3.2.0 + * + * @param bool $redirect_network_admin_request Whether the request should be redirected. + */ $redirect_network_admin_request = apply_filters( 'redirect_network_admin_request', $redirect_network_admin_request ); if ( $redirect_network_admin_request ) { wp_redirect( network_admin_url() );