Changeset 15558
- Timestamp:
- 09/02/2010 03:03:39 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r15481 r15558 15 15 define('WP_ADMIN', TRUE); 16 16 17 if ( !defined('WP_NETWORK_ADMIN') ) 17 if ( !defined('WP_NETWORK_ADMIN') ) { 18 18 define('WP_NETWORK_ADMIN', FALSE); 19 define('WP_BLOG_ADMIN', TRUE); 20 } 19 21 20 22 if ( isset($_GET['import']) && !defined('WP_LOAD_IMPORTERS') ) -
trunk/wp-includes/load.php
r15482 r15558 554 554 555 555 /** 556 * Whether the current request is in WordPress admin Panel556 * Whether the current request is for a network or blog admin page 557 557 * 558 558 * Does not inform on whether the user is an admin! Use capability checks to … … 570 570 571 571 /** 572 * Whether the current request is in WordPress network admin Panel 572 * Whether the current request is for a blog admin screen /wp-admin/ 573 * 574 * Does not inform on whether the user is a blog 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 */ 581 function is_blog_admin() { 582 if ( defined( 'WP_BLOG_ADMIN' ) ) 583 return WP_BLOG_ADMIN; 584 return false; 585 } 586 587 /** 588 * Whether the current request is for a network admin screen /wp-admin/network/ 573 589 * 574 590 * Does not inform on whether the user is a network admin! Use capability checks to
Note: See TracChangeset
for help on using the changeset viewer.