WordPress.org

Make WordPress Core

Ticket #7974: 7974.diff

File 7974.diff, 1.2 KB (added by sivel, 10 years ago)
  • plugins.php

     
    322322        <div class="alignleft actions">
    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; ?>
    337339        </div>