Make WordPress Core


Ignore:
Timestamp:
12/07/2010 09:06:19 PM (14 years ago)
Author:
westi
Message:

Restore some more cap checks for clarity. See #15326.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r16757 r16776  
    1010require_once('./admin.php');
    1111
     12if ( !current_user_can('activate_plugins') )
     13    wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) );
     14           
    1215$wp_list_table = get_list_table('WP_Plugins_List_Table');
    1316$wp_list_table->check_permissions();
Note: See TracChangeset for help on using the changeset viewer.