Fix bulk action lists. see #9527

git-svn-id: http://svn.automattic.com/wordpress/trunk@11014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-20 19:23:33 +00:00
parent a61bc0ec8a
commit dba5368640
1 changed files with 3 additions and 3 deletions

View File

@ -390,13 +390,13 @@ function print_plugin_actions($context) {
<div class="alignleft actions">
<select name="action">
<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
<?php if( 'active' != $context ) : ?>
<?php if ( 'active' != $context ) : ?>
<option value="activate-selected"><?php _e('Activate'); ?></option>
<?php endif; ?>
<?php if ( 'active' == $context ) : ?>
<?php if ( 'inactive' != $context && 'recent' != $context ) : ?>
<option value="deactivate-selected"><?php _e('Deactivate'); ?></option>
<?php endif; ?>
<?php if( current_user_can('delete_plugins') && ( 'recent' == $context || 'inactive' == $context ) ) : ?>
<?php if ( current_user_can('delete_plugins') && ( 'active' != $context ) ) : ?>
<option value="delete-selected"><?php _e('Delete'); ?></option>
<?php endif; ?>
</select>