Network Admin: Case-insensitive comparisons for the network-site comparison in the bootstrap.

props jeremyfelt.
fixes #17168.

Built from https://develop.svn.wordpress.org/trunk@27725


git-svn-id: http://core.svn.wordpress.org/trunk@27562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-03-25 21:07:15 +00:00
parent c095ad4500
commit c538d8b52b
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );
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.
*