mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +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:
@@ -126,7 +126,7 @@ function wp_plugin_update_row( $file, $plugin_data ) {
|
||||
$r = $current->response[ $file ];
|
||||
|
||||
echo '<tr><td colspan="5" class="plugin-update">';
|
||||
if ( !current_user_can('edit_plugins') )
|
||||
if ( ! current_user_can('update_plugins') )
|
||||
printf( __('There is a new version of %1$s available. <a href="%2$s">Download version %3$s here</a>.'), $plugin_data['Name'], $r->url, $r->new_version);
|
||||
else if ( empty($r->package) )
|
||||
printf( __('There is a new version of %1$s available. <a href="%2$s">Download version %3$s here</a> <em>automatic upgrade unavailable for this plugin</em>.'), $plugin_data['Name'], $r->url, $r->new_version);
|
||||
|
||||
Reference in New Issue
Block a user