Fix logic inversion. Props DD32. fixes #6248
git-svn-id: https://develop.svn.wordpress.org/trunk@7434 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
55d0af7437
commit
aebc9b36d3
@ -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&plugin=$file", 'upgrade-plugin_' . $file) );
|
||||
|
Loading…
Reference in New Issue
Block a user