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

git-svn-id: http://svn.automattic.com/wordpress/trunk@9362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-10-26 22:06:58 +00:00
parent b679f97348
commit bb7249cffe

View File

@ -325,8 +325,10 @@ function print_plugin_actions($context) {
<?php if( 'active' != $context ) : ?>
<option value="activate-selected"><?php _e('Activate'); ?></option>
<?php endif; ?>
<?php if ( 'active' == $context ) : ?>
<option value="deactivate-selected"><?php _e('Deactivate'); ?></option>
<?php if( current_user_can('delete_plugins') && 'recent' == $context) : ?>
<?php endif; ?>
<?php if( current_user_can('delete_plugins') && ( 'recent' == $context || 'inactive' == $context ) ) : ?>
<option value="delete-selected"><?php _e('Delete'); ?></option>
<?php endif; ?>
</select>