Make WordPress Core


Ignore:
Timestamp:
06/06/2008 07:21:35 PM (18 years ago)
Author:
ryan
Message:

Add delete_plugins and update_plugins caps. Props DD32. fixes #7096

File:
1 edited

Legend:

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

    r8009 r8060  
    33require_once('admin.php');
    44
    5 if ( !current_user_can('edit_plugins') )
    6     wp_die('<p>'.__('You do not have sufficient permissions to update plugins for this blog.').'</p>');
     5if ( ! current_user_can('update_plugins') )
     6    wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
    77
    88function request_filesystem_credentials($form_post, $type = '', $error = false) {
Note: See TracChangeset for help on using the changeset viewer.