Changeset 34912 for trunk/src/wp-includes/capabilities-functions.php
- Timestamp:
- 10/07/2015 05:11:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities-functions.php
r34778 r34912 337 337 if ( is_multisite() ) { 338 338 // update_, install_, and delete_ are handled above with is_super_admin(). 339 $menu_perms = get_ network_option( 'menu_items', array() );339 $menu_perms = get_site_option( 'menu_items', array() ); 340 340 if ( empty( $menu_perms['plugins'] ) ) 341 341 $caps[] = 'manage_network_plugins'; … … 353 353 if ( !is_multisite() ) 354 354 $caps[] = $cap; 355 elseif ( is_super_admin( $user_id ) || get_ network_option( 'add_new_users' ) )355 elseif ( is_super_admin( $user_id ) || get_site_option( 'add_new_users' ) ) 356 356 $caps[] = $cap; 357 357 else … … 579 579 return $super_admins; 580 580 else 581 return get_ network_option( 'site_admins', array('admin') );581 return get_site_option( 'site_admins', array('admin') ); 582 582 } 583 583
Note: See TracChangeset
for help on using the changeset viewer.