From aebc9b36d374b078ff564d1c69ecf70db8a72fce Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 20 Mar 2008 23:54:17 +0000 Subject: [PATCH] Fix logic inversion. Props DD32. fixes #6248 git-svn-id: https://develop.svn.wordpress.org/trunk@7434 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/update.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +?>