diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 4fa8fef708..38fb412f1f 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -127,9 +127,9 @@ function wp_plugin_update_row( $file ) { $r = $current->response[ $file ]; echo ""; - if( current_user_can('edit_plugins') ) + if ( !current_user_can('edit_plugins') ) printf( __('There is a new version of %1$s available. Download version %3$s here.'), $plugin_data['Name'], $r->url, $r->new_version); - else if( empty($r->package) ) + else if ( empty($r->package) ) printf( __('There is a new version of %1$s available. Download version %3$s here automatic upgrade unavailable for this plugin.'), $plugin_data['Name'], $r->url, $r->new_version); else printf( __('There is a new version of %1$s available. Download version %3$s here or upgrade automatically.'), $plugin_data['Name'], $r->url, $r->new_version, wp_nonce_url("update.php?action=upgrade-plugin&plugin=$file", 'upgrade-plugin_' . $file) ); @@ -227,4 +227,4 @@ function wp_update_plugin($plugin, $feedback = '') { delete_option('update_plugins'); } -?> \ No newline at end of file +?>