Make WordPress Core


Ignore:
Timestamp:
09/22/2010 12:10:39 AM (14 years ago)
Author:
scribu
Message:

Introduce WP_List_Table::current_action() and use throughout admin list screens. See #14579

File:
1 edited

Legend:

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

    r15578 r15642  
    1313$wp_list_table->check_permissions();
    1414
    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();
    2316
    2417$plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : '';
    2518
    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.
    2720$_SERVER['REQUEST_URI'] = remove_query_arg(array('error', 'deleted', 'activate', 'activate-multi', 'deactivate', 'deactivate-multi', '_error_nonce'), $_SERVER['REQUEST_URI']);
    2821
    29 if ( !empty($action) ) {
     22if ( $action ) {
    3023    $network_wide = false;
    3124    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.