Make WordPress Core


Ignore:
Timestamp:
04/20/2011 08:19:50 PM (13 years ago)
Author:
ryan
Message:

Allow plugins to control user and network admin canonical redirects. fixes #17196

File:
1 edited

Legend:

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

    r17510 r17668  
    1616    wp_die( __( 'Multisite support is not enabled.' ) );
    1717
    18 if ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) ) {
     18$redirect_network_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) );
     19$redirect_network_admin_request = apply_filters( 'redirect_network_admin_request', $redirect_network_admin_request );
     20if ( $redirect_network_admin_request ) {
    1921    wp_redirect( network_admin_url() );
    2022    exit;
    2123}
     24unset( $redirect_network_admin_request );
    2225?>
Note: See TracChangeset for help on using the changeset viewer.