Changeset 11761 for trunk/wp-admin/plugins.php
- Timestamp:
- 08/01/2009 09:12:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r11554 r11761 9 9 /** WordPress Administration Bootstrap */ 10 10 require_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.')); 11 14 12 15 if ( isset($_POST['clear-recent-list']) ) … … 38 41 switch ( $action ) { 39 42 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 40 46 check_admin_referer('activate-plugin_' . $plugin); 41 47 … … 54 60 break; 55 61 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 56 65 check_admin_referer('bulk-manage-plugins'); 57 66 … … 76 85 break; 77 86 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 78 90 check_admin_referer('plugin-activation-error_' . $plugin); 79 91 … … 89 101 break; 90 102 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 91 106 check_admin_referer('deactivate-plugin_' . $plugin); 92 107 deactivate_plugins($plugin); … … 96 111 break; 97 112 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 98 116 check_admin_referer('bulk-manage-plugins'); 99 117
Note: See TracChangeset
for help on using the changeset viewer.