WordPress.org

Make WordPress Core

Changeset 48134


Ignore:
Timestamp:
06/23/2020 05:54:15 AM (5 months ago)
Author:
whyisjake
Message:

Quick/Bulk Edit: Ensure the proper actions is triggered when using the bulk updater.

If a user selects the top option, then chooses a different option, the top selection takes precedence. This update gives a new name to the bottom action, ensuring the proper update is carried out.

Fixes 46872.

Props clayray, garrett-eclipse, subrataemfluence.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r48109 r48134  
    474474        echo "</select>\n";
    475475
    476         submit_button( __( 'Apply' ), 'action', '', false, array( 'id' => "doaction$two" ) );
     476        submit_button( __( 'Apply' ), 'action', "doaction$two", false, array( 'id' => "doaction$two" ) );
    477477        echo "\n";
    478478    }
     
    490490        }
    491491
     492        if ( isset( $_REQUEST['doaction2'] ) && isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) {
     493            return $_REQUEST['action2'];
     494        }
     495
    492496        if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) {
    493497            return $_REQUEST['action'];
    494         }
    495 
    496         if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) {
    497             return $_REQUEST['action2'];
    498498        }
    499499
Note: See TracChangeset for help on using the changeset viewer.