Make WordPress Core


Ignore:
Timestamp:
01/07/2021 04:21:09 PM (4 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/site-users.php

    r49384 r49944  
    141141            check_admin_referer( 'bulk-users' );
    142142            $editable_roles = get_editable_roles();
    143             $role           = false;
    144             if ( ! empty( $_REQUEST['new_role2'] ) ) {
    145                 $role = $_REQUEST['new_role2'];
    146             } elseif ( ! empty( $_REQUEST['new_role'] ) ) {
    147                 $role = $_REQUEST['new_role'];
    148             }
     143            $role           = $_REQUEST['new_role'];
    149144
    150145            if ( empty( $editable_roles[ $role ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.