Changeset 8060 for trunk/wp-admin/plugins.php
- Timestamp:
- 06/06/2008 07:21:35 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/plugins.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r8049 r8060 73 73 break; 74 74 case 'delete-selected': 75 if( ! current_user_can('delete_plugins') ) 76 wp_die(__('You do not have sufficient permissions to delete plugins for this blog.')); 75 77 check_admin_referer('mass-manage-plugins'); 76 78 $plugins = $_REQUEST['checked']; … … 251 253 <div class="alignleft"> 252 254 <input type="submit" name="activate-selected" value="<?php _e('Activate') ?>" class="button-secondary" /> 253 <?php if( current_user_can(' edit_plugins') ) : ?>255 <?php if( current_user_can('delete_plugins') ) : ?> 254 256 <input type="submit" name="delete-selected" value="<?php _e('Delete') ?>" class="button-secondary" /> 255 257 <?php endif; ?> … … 268 270 <div class="alignleft"> 269 271 <input type="submit" name="activate-selected" value="<?php _e('Activate') ?>" class="button-secondary" /> 270 <?php if( current_user_can(' edit_plugins') ) : ?>272 <?php if( current_user_can('delete_plugins') ) : ?> 271 273 <input type="submit" name="delete-selected" value="<?php _e('Delete') ?>" class="button-secondary" /> 272 274 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.