Merge pull request #20338 from Spreeuw/patch-5

apply bulk actions oldest to newest
This commit is contained in:
Claudiu Lodromanean 2018-06-07 09:34:38 -07:00 committed by GitHub
commit c8480b68f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -623,7 +623,7 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
* @return string
*/
public function handle_bulk_actions( $redirect_to, $action, $ids ) {
$ids = array_map( 'absint', $ids );
$ids = apply_filters( 'woocommerce_bulk_action_ids', array_reverse( array_map( 'absint', $ids ) ), $action, 'order' );
$changed = 0;
if ( 'remove_personal_data' === $action ) {