WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/09/2010 06:02:54 PM (9 years ago)
Author:
nacin
Message:

Always exit after wp_redirect. props filosofo, fixes #15518.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r16833 r16847  
    508508    if ( is_object( $blog ) ) {
    509509        wp_redirect( get_admin_url( $blog->blog_id, '?c=' . $c ) ); // redirect and count to 5, "just in case"
    510         exit;
    511510    } else {
    512511        wp_redirect( user_admin_url( '?c=' . $c ) ); // redirect and count to 5, "just in case"
    513512    }
    514 
    515     wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
     513    exit;
    516514}
    517515add_action( 'admin_page_access_denied', 'redirect_user_to_blog', 99 );
Note: See TracChangeset for help on using the changeset viewer.