WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/22/2010 12:10:39 AM (10 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/users.php

    r15578 r15642  
    3030);
    3131
    32 $update = $doaction = '';
    33 if ( isset($_REQUEST['action']) )
    34     $doaction = $_REQUEST['action'] ? $_REQUEST['action'] : $_REQUEST['action2'];
    35 
    36 if ( "-1" == $doaction ) {
    37     if ( isset($_REQUEST['changeit']) && !empty($_REQUEST['new_role']) )
    38         $doaction = 'promote';
    39 }
    40 
    4132if ( empty($_REQUEST) ) {
    4233    $referer = '<input type="hidden" name="wp_http_referer" value="'. esc_attr(stripslashes($_SERVER['REQUEST_URI'])) . '" />';
     
    4940}
    5041
    51 switch ($doaction) {
     42$update = '';
     43
     44switch ( $wp_list_table->current_action() ) {
    5245
    5346/* Bulk Dropdown menu Role changes */
Note: See TracChangeset for help on using the changeset viewer.