Index: wp-admin/includes/update.php
===================================================================
--- wp-admin/includes/update.php (revision 7430)
+++ wp-admin/includes/update.php (working copy)
@@ -127,7 +127,13 @@
$r = $current->response[ $file ];
echo "
";
- 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) );
+ 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) )
+ 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) );
+
echo " |
";
}
add_action( 'after_plugin_row', 'wp_plugin_update_row' );