WordPress.org

Make WordPress Core

Changeset 10867


Ignore:
Timestamp:
04/04/09 11:15:39 (6 years ago)
Author:
azaozz
Message:

Remove unused code from wp-admin/plugins.php, props DD32, fixes #9454

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r10738 r10867  
    1010require_once('admin.php'); 
    1111 
    12 $action = ''; 
    13 foreach( array('activate-selected', 'deactivate-selected', 'delete-selected', 'clear-recent-list') as $action_key ) { 
    14     if( isset($_POST[$action_key]) ) { 
    15         $action = $action_key; 
    16         break; 
    17     } 
    18 } 
    19  
    20 if( isset($_REQUEST['action']) && !empty($_REQUEST['action']) ) 
    21     $action = $_REQUEST['action']; 
     12if ( isset($_POST['clear-recent-list']) ) 
     13    $action = 'clear-recent-list'; 
     14elseif ( isset($_GET['action']) ) 
     15    $action = $_GET['action']; 
     16elseif ( isset($_POST['action']) ) 
     17    $action = $_POST['action']; 
     18else 
     19    $action = false; 
    2220 
    2321$plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : ''; 
     
    128126                <form method="post" action="<?php echo clean_url($_SERVER['REQUEST_URI']); ?>" style="display:inline;"> 
    129127                    <input type="hidden" name="verify-delete" value="1" /> 
    130                     <input type="hidden" name="delete-selected" value="1" /> 
     128                    <input type="hidden" name="action" value="delete-selected" /> 
    131129                    <?php 
    132130                        foreach ( (array)$plugins as $plugin ) 
Note: See TracChangeset for help on using the changeset viewer.