Ticket #9454: 9454.diff
| File 9454.diff, 1.5 KB (added by , 17 years ago) |
|---|
-
wp-admin/plugins.php
9 9 /** WordPress Administration Bootstrap */ 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 } 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; 19 20 20 if( isset($_REQUEST['action']) && !empty($_REQUEST['action']) )21 $action = $_REQUEST['action'];22 23 21 $plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : ''; 24 22 25 23 if( !empty($action) ) { … … 127 125 <p><?php _e('Are you sure you wish to delete these files?') ?></p> 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 ) 133 131 echo '<input type="hidden" name="checked[]" value="' . attribute_escape($plugin) . '" />'; … … 395 393 396 394 <?php 397 395 include('admin-footer.php'); 398 ?> 399 No newline at end of file 396 ?>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)