mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Add delete_plugins and update_plugins caps. Props DD32. fixes #7096
git-svn-id: https://develop.svn.wordpress.org/trunk@8060 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+2
-2
@@ -2,8 +2,8 @@
|
||||
|
||||
require_once('admin.php');
|
||||
|
||||
if ( !current_user_can('edit_plugins') )
|
||||
wp_die('<p>'.__('You do not have sufficient permissions to update plugins for this blog.').'</p>');
|
||||
if ( ! current_user_can('update_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
|
||||
|
||||
function request_filesystem_credentials($form_post, $type = '', $error = false) {
|
||||
$req_cred = apply_filters('request_filesystem_credentials', '', $form_post, $type, $error);
|
||||
|
||||
Reference in New Issue
Block a user