WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/07/2010 07:34:18 PM (11 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-includes/vars.php

    r13132 r15746  
    1616if ( is_admin() ) {
    1717    // wp-admin pages are checked more carefully
    18     preg_match('#/wp-admin/?(.*?)$#i', $PHP_SELF, $self_matches);
     18    if ( is_network_admin() )
     19        preg_match('#/wp-admin/network/?(.*?)$#i', $PHP_SELF, $self_matches);
     20    elseif ( is_user_admin() )
     21        preg_match('#/wp-admin/user/?(.*?)$#i', $PHP_SELF, $self_matches);
     22    else
     23        preg_match('#/wp-admin/?(.*?)$#i', $PHP_SELF, $self_matches);
    1924    $pagenow = $self_matches[1];
    2025    $pagenow = trim($pagenow, '/');
Note: See TracChangeset for help on using the changeset viewer.