WordPress.org

Make WordPress Core

Changeset 11014


Ignore:
Timestamp:
04/20/09 19:23:33 (6 years ago)
Author:
ryan
Message:

Fix bulk action lists. see #9527

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r11013 r11014  
    391391        <select name="action"> 
    392392            <option value="" selected="selected"><?php _e('Bulk Actions'); ?></option> 
    393     <?php if( 'active' != $context ) : ?> 
     393    <?php if ( 'active' != $context ) : ?> 
    394394            <option value="activate-selected"><?php _e('Activate'); ?></option> 
    395395    <?php endif; ?> 
    396     <?php if ( 'active' == $context ) : ?> 
     396    <?php if ( 'inactive' != $context && 'recent' != $context ) : ?> 
    397397            <option value="deactivate-selected"><?php _e('Deactivate'); ?></option> 
    398398    <?php endif; ?> 
    399     <?php if( current_user_can('delete_plugins') && ( 'recent' == $context || 'inactive' == $context ) ) : ?> 
     399    <?php if ( current_user_can('delete_plugins') && ( 'active' != $context ) ) : ?> 
    400400            <option value="delete-selected"><?php _e('Delete'); ?></option> 
    401401    <?php endif; ?> 
Note: See TracChangeset for help on using the changeset viewer.