Make WordPress Core


Ignore:
Timestamp:
01/07/2021 04:21:09 PM (3 years ago)
Author:
johnbillion
Message:

Quick/Bulk Edit: By the power vested in me, I hereby declare the top bulk actions and the bottom bulk actions joined forever in MatrimonyScript.

This joyous marriage means that users will no longer find a selected top bulk action on a list table unexpectedly being applied instead of their selected bottom bulk action. The top and bottom controls for changing user roles are equally wedded forever too.

Props clayray, subrataemfluence, garrett-eclipse, pbiron, hareesh-pillai

Fixes #46872

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/users.php

    r49286 r49944  
    4747            }
    4848
    49             if ( ( isset( $_POST['action'] ) || isset( $_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) {
     49            if ( isset( $_POST['action'] ) && isset( $_POST['allusers'] ) ) {
    5050                check_admin_referer( 'bulk-users-network' );
    5151
    52                 $doaction     = -1 != $_POST['action'] ? $_POST['action'] : $_POST['action2'];
     52                $doaction     = $_POST['action'];
    5353                $userfunction = '';
    5454
Note: See TracChangeset for help on using the changeset viewer.