WordPress.org

Make WordPress Core

Ticket #16652: 16652.diff

File 16652.diff, 885 bytes (added by ryan, 7 years ago)
  • wp-admin/network/admin.php

     
    1515if ( ! is_multisite() )
    1616        wp_die( __( 'Multisite support is not enabled.' ) );
    1717
    18 if ( ! is_main_site() ) {
     18if ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) ) {
    1919        wp_redirect( network_admin_url() );
    2020        exit;
    2121}
  • wp-admin/user/admin.php

     
    1616        exit;
    1717}
    1818
    19 if ( ! is_main_site() ) {
     19if ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) ) {
    2020        wp_redirect( user_admin_url() );
    2121        exit;
    2222}