WordPress.org

Make WordPress Core

Changeset 7434


Ignore:
Timestamp:
03/20/08 23:54:17 (7 years ago)
Author:
ryan
Message:

Fix logic inversion. Props DD32. fixes #6248

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/update.php

    r7433 r7434  
    128128 
    129129    echo "<tr><td colspan='5' class='plugin-update'>"; 
    130     if( current_user_can('edit_plugins') ) 
     130    if ( !current_user_can('edit_plugins') ) 
    131131        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); 
    132     else if( empty($r->package) ) 
     132    else if ( empty($r->package) ) 
    133133        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); 
    134134    else 
Note: See TracChangeset for help on using the changeset viewer.