WordPress.org

Make WordPress Core

Changeset 9362


Ignore:
Timestamp:
10/26/08 22:06:58 (7 years ago)
Author:
westi
Message:

Correct the actions dropdowns for the different contexts. Fixes #7974 props sivel.

File:
1 edited

Legend:

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

    r9352 r9362  
    323323        <select name="action"> 
    324324            <option value="" selected="selected"><?php _e('Actions'); ?></option> 
    325     <?php if( 'active' != $context) : ?> 
     325    <?php if( 'active' != $context ) : ?> 
    326326            <option value="activate-selected"><?php _e('Activate'); ?></option> 
    327327    <?php endif; ?> 
     328    <?php if ( 'active' == $context ) : ?> 
    328329            <option value="deactivate-selected"><?php _e('Deactivate'); ?></option> 
    329     <?php if( current_user_can('delete_plugins') && 'recent' == $context) : ?> 
     330    <?php endif; ?> 
     331    <?php if( current_user_can('delete_plugins') && ( 'recent' == $context || 'inactive' == $context ) ) : ?> 
    330332            <option value="delete-selected"><?php _e('Delete'); ?></option> 
    331333    <?php endif; ?> 
    332334        </select> 
    333335        <input type="submit" name="doaction_active" value="<?php _e('Apply'); ?>" class="button-secondary action" /> 
    334     <?php if( 'recent' == $context) : ?> 
     336    <?php if( 'recent' == $context ) : ?> 
    335337        <input type="submit" name="clear-recent-list" value="<?php _e('Clear List') ?>" class="button-secondary" /> 
    336338    <?php endif; ?> 
Note: See TracChangeset for help on using the changeset viewer.