Make WordPress Core

Changeset 17511


Ignore:
Timestamp:
03/08/2011 10:56:43 PM (13 years ago)
Author:
ryan
Message:

Anchor network and user admins at the network domain and path rather than at the main site. Makes the redirects consistent with network_admin_url(). fixes #16652 for 3.1

Location:
branches/3.1/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-admin/network/admin.php

    r16847 r17511  
    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;
  • branches/3.1/wp-admin/user/admin.php

    r17332 r17511  
    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;
Note: See TracChangeset for help on using the changeset viewer.