Make WordPress Core


Ignore:
Timestamp:
07/30/2010 08:34:54 PM (14 years ago)
Author:
ryan
Message:

Network Admin, first pass. see #14435

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/load.php

    r15240 r15481  
    570570
    571571/**
     572 * Whether the current request is in WordPress network admin Panel
     573 *
     574 * Does not inform on whether the user is a network admin! Use capability checks to
     575 * tell if the user should be accessing a section or not.
     576 *
     577 * @since 3.1.0
     578 *
     579 * @return bool True if inside WordPress network administration pages.
     580 */
     581function is_network_admin() {
     582    if ( defined( 'WP_NETWORK_ADMIN' ) )
     583        return WP_NETWORK_ADMIN;
     584    return false;
     585}
     586
     587/**
    572588 * Whether Multisite support is enabled
    573589 *
Note: See TracChangeset for help on using the changeset viewer.