Changeset 15642 for trunk/wp-admin/plugins.php
- Timestamp:
- 09/22/2010 12:10:39 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r15578 r15642 13 13 $wp_list_table->check_permissions(); 14 14 15 if ( isset($_POST['clear-recent-list']) ) 16 $action = 'clear-recent-list'; 17 elseif ( !empty($_REQUEST['action']) ) 18 $action = $_REQUEST['action']; 19 elseif ( !empty($_REQUEST['action2']) ) 20 $action = $_REQUEST['action2']; 21 else 22 $action = false; 15 $action = $wp_list_table->current_action(); 23 16 24 17 $plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : ''; 25 18 26 // Clean up request URI from temporary args for screen options/paging uri's to work as expected.19 // Clean up request URI from temporary args for screen options/paging uri's to work as expected. 27 20 $_SERVER['REQUEST_URI'] = remove_query_arg(array('error', 'deleted', 'activate', 'activate-multi', 'deactivate', 'deactivate-multi', '_error_nonce'), $_SERVER['REQUEST_URI']); 28 21 29 if ( !empty($action)) {22 if ( $action ) { 30 23 $network_wide = false; 31 24 if ( ( isset( $_GET['networkwide'] ) || 'network-activate-selected' == $action ) && is_multisite() && current_user_can( 'manage_network_plugins' ) )
Note: See TracChangeset
for help on using the changeset viewer.