Make WordPress Core


Ignore:
Timestamp:
10/07/2010 07:34:18 PM (14 years ago)
Author:
ryan
Message:

First pass of user admin. Network admin and screen cleanups. see #14696

File:
1 edited

Legend:

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

    r15600 r15746  
    1212 * @since unknown
    1313 */
    14 if ( !defined('WP_ADMIN') )
     14if ( ! defined('WP_ADMIN') )
    1515    define('WP_ADMIN', TRUE);
    1616
    17 if ( !defined('WP_NETWORK_ADMIN') ) {
     17if ( ! defined('WP_NETWORK_ADMIN') )
    1818    define('WP_NETWORK_ADMIN', FALSE);
     19
     20if ( ! defined('WP_USER_ADMIN') )
     21    define('WP_USER_ADMIN', FALSE);
     22
     23if ( ! WP_NETWORK_ADMIN && ! WP_USER_ADMIN ) {
    1924    define('WP_BLOG_ADMIN', TRUE);
    2025}
     
    98103if ( WP_NETWORK_ADMIN )
    99104    require(ABSPATH . 'wp-admin/network/menu.php');
     105elseif ( WP_USER_ADMIN )
     106    require(ABSPATH . 'wp-admin/user/menu.php');
    100107else
    101108    require(ABSPATH . 'wp-admin/menu.php');
Note: See TracChangeset for help on using the changeset viewer.