Changeset 16990 for trunk/wp-admin/plugins.php
- Timestamp:
- 12/16/2010 08:43:22 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r16989 r16990 10 10 require_once('./admin.php'); 11 11 12 if ( is_multisite() ) { 13 $menu_perms = get_site_option( 'menu_items', array() ); 14 15 if ( empty( $menu_perms['plugins'] ) && ! is_super_admin() ) 16 wp_die( __( 'Cheatin’ uh?' ) ); 17 } 18 12 19 if ( !current_user_can('activate_plugins') ) 13 20 wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) ); 14 21 15 22 $wp_list_table = get_list_table('WP_Plugins_List_Table'); 16 $wp_list_table->check_permissions();17 23 18 24 $action = $wp_list_table->current_action();
Note: See TracChangeset
for help on using the changeset viewer.