Changeset 10867
- Timestamp:
- 04/04/2009 11:15:39 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r10738 r10867 10 10 require_once('admin.php'); 11 11 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']; 12 if ( isset($_POST['clear-recent-list']) ) 13 $action = 'clear-recent-list'; 14 elseif ( isset($_GET['action']) ) 15 $action = $_GET['action']; 16 elseif ( isset($_POST['action']) ) 17 $action = $_POST['action']; 18 else 19 $action = false; 22 20 23 21 $plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : ''; … … 128 126 <form method="post" action="<?php echo clean_url($_SERVER['REQUEST_URI']); ?>" style="display:inline;"> 129 127 <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" /> 131 129 <?php 132 130 foreach ( (array)$plugins as $plugin )
Note: See TracChangeset
for help on using the changeset viewer.