Fix logic inversion. Props DD32. fixes #6248

git-svn-id: http://svn.automattic.com/wordpress/trunk@7434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-20 23:54:17 +00:00
parent bf281b5a7b
commit c6e1d87b09
1 changed files with 3 additions and 3 deletions

View File

@ -127,9 +127,9 @@ function wp_plugin_update_row( $file ) {
$r = $current->response[ $file ];
echo "<tr><td colspan='5' class='plugin-update'>";
if( current_user_can('edit_plugins') )
if ( !current_user_can('edit_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) )
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);
else
printf( __('There is a new version of %1$s available. <a href="%2$s">Download version %3$s here</a> or <a href="%4$s">upgrade automatically</a>.'), $plugin_data['Name'], $r->url, $r->new_version, wp_nonce_url("update.php?action=upgrade-plugin&amp;plugin=$file", 'upgrade-plugin_' . $file) );
@ -227,4 +227,4 @@ function wp_update_plugin($plugin, $feedback = '') {
delete_option('update_plugins');
}
?>
?>