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:
Ryan Boren
2008-06-06 19:21:35 +00:00
parent fd03904f93
commit 8c3e7d7283
6 changed files with 26 additions and 7 deletions
+1 -1
View File
@@ -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);