mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Remove unused code from wp-admin/plugins.php, props DD32, fixes #9454
git-svn-id: http://svn.automattic.com/wordpress/trunk@10867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
68e836af48
commit
b9c19736ff
@ -9,16 +9,14 @@
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once('admin.php');
|
||||
|
||||
$action = '';
|
||||
foreach( array('activate-selected', 'deactivate-selected', 'delete-selected', 'clear-recent-list') as $action_key ) {
|
||||
if( isset($_POST[$action_key]) ) {
|
||||
$action = $action_key;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if( isset($_REQUEST['action']) && !empty($_REQUEST['action']) )
|
||||
$action = $_REQUEST['action'];
|
||||
if ( isset($_POST['clear-recent-list']) )
|
||||
$action = 'clear-recent-list';
|
||||
elseif ( isset($_GET['action']) )
|
||||
$action = $_GET['action'];
|
||||
elseif ( isset($_POST['action']) )
|
||||
$action = $_POST['action'];
|
||||
else
|
||||
$action = false;
|
||||
|
||||
$plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : '';
|
||||
|
||||
@ -127,7 +125,7 @@ if( !empty($action) ) {
|
||||
<p><?php _e('Are you sure you wish to delete these files?') ?></p>
|
||||
<form method="post" action="<?php echo clean_url($_SERVER['REQUEST_URI']); ?>" style="display:inline;">
|
||||
<input type="hidden" name="verify-delete" value="1" />
|
||||
<input type="hidden" name="delete-selected" value="1" />
|
||||
<input type="hidden" name="action" value="delete-selected" />
|
||||
<?php
|
||||
foreach ( (array)$plugins as $plugin )
|
||||
echo '<input type="hidden" name="checked[]" value="' . attribute_escape($plugin) . '" />';
|
||||
|
Loading…
Reference in New Issue
Block a user