WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/20/2011 03:04:20 AM (10 years ago)
Author:
nacin
Message:

Correct user admin redirection checks, and deny access to the user admin when not running multisite. fixes #16297.

File:
1 edited

Legend:

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

    r16847 r17332  
    1212require_once( dirname(dirname(__FILE__)) . '/admin.php');
    1313
     14if ( ! is_multisite() ) {
     15    wp_redirect( admin_url() );
     16    exit;
     17}
     18
    1419if ( ! is_main_site() ) {
    1520    wp_redirect( user_admin_url() );
Note: See TracChangeset for help on using the changeset viewer.