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/load.php

    r15680 r15746  
    622622
    623623/**
     624 * Whether the current request is for a user admin screen /wp-admin/user/
     625 *
     626 * Does not inform on whether the user is an admin! Use capability checks to
     627 * tell if the user should be accessing a section or not.
     628 *
     629 * @since 3.1.0
     630 *
     631 * @return bool True if inside WordPress user administration pages.
     632 */
     633function is_user_admin() {
     634    if ( defined( 'WP_USER_ADMIN' ) )
     635        return WP_USER_ADMIN;
     636    return false;
     637}
     638
     639/**
    624640 * Whether Multisite support is enabled
    625641 *
Note: See TracChangeset for help on using the changeset viewer.