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:
parent
bf281b5a7b
commit
c6e1d87b09
|
@ -127,7 +127,7 @@ function wp_plugin_update_row( $file ) {
|
||||||
$r = $current->response[ $file ];
|
$r = $current->response[ $file ];
|
||||||
|
|
||||||
echo "<tr><td colspan='5' class='plugin-update'>";
|
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);
|
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);
|
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);
|
||||||
|
|
Loading…
Reference in New Issue