WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r11762 r11527  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( ! current_user_can('activate_plugins') )
    13     wp_die(__('You do not have sufficient permissions to manage plugins for this blog.'));
    1411
    1512if ( isset($_POST['clear-recent-list']) )
     
    4138    switch ( $action ) {
    4239        case 'activate':
    43             if ( ! current_user_can('activate_plugins') )
    44                 wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
    45 
    4640            check_admin_referer('activate-plugin_' . $plugin);
    4741
     
    6054            break;
    6155        case 'activate-selected':
    62             if ( ! current_user_can('activate_plugins') )
    63                 wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
    64            
    6556            check_admin_referer('bulk-manage-plugins');
    6657
     
    8576            break;
    8677        case 'error_scrape':
    87             if ( ! current_user_can('activate_plugins') )
    88                 wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
    89 
    9078            check_admin_referer('plugin-activation-error_' . $plugin);
    9179
     
    10189            break;
    10290        case 'deactivate':
    103             if ( ! current_user_can('activate_plugins') )
    104                 wp_die(__('You do not have sufficient permissions to deactivate plugins for this blog.'));
    105 
    10691            check_admin_referer('deactivate-plugin_' . $plugin);
    10792            deactivate_plugins($plugin);
     
    11196            break;
    11297        case 'deactivate-selected':
    113             if ( ! current_user_can('activate_plugins') )
    114                 wp_die(__('You do not have sufficient permissions to deactivate plugins for this blog.'));
    115 
    11698            check_admin_referer('bulk-manage-plugins');
    11799
Note: See TracChangeset for help on using the changeset viewer.