mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
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:
parent
b679f97348
commit
bb7249cffe
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user