WordPress.org

Make WordPress Core

Changeset 27725


Ignore:
Timestamp:
03/25/2014 09:06:26 PM (7 years ago)
Author:
nacin
Message:

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

props jeremyfelt.
fixes #17168.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/admin.php

    r26913 r27725  
    1616    wp_die( __( 'Multisite support is not enabled.' ) );
    1717
    18 $redirect_network_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) );
     18$redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path );
     19
    1920/**
    2021 * Filter whether to redirect the request to the Network Admin.
Note: See TracChangeset for help on using the changeset viewer.