Changeset 21198 for trunk/wp-admin/includes/class-wp-plugins-list-table.php
- Timestamp:
- 06/30/2012 12:40:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-plugins-list-table.php
r20853 r21198 32 32 33 33 function ajax_user_can() { 34 if ( is_multisite() ) {35 $menu_perms = get_site_option( 'menu_items', array() );36 37 if ( empty( $menu_perms['plugins'] ) && ! is_super_admin() )38 return false;39 }40 41 34 return current_user_can('activate_plugins'); 42 35 }
Note: See TracChangeset
for help on using the changeset viewer.