WordPress.org

Make WordPress Core

Opened 14 months ago

Last modified 14 months ago

#45006 new enhancement

On Bulk Actions either suppress until checkboxes selected or provide feedback that the action had no items to act on

Reported by: garrett-eclipse Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords: ux-feedback
Focuses: administration Cc:
PR Number:

Description

Hello,

It seems to be the convention in core to simply have no action response when you attempt to execute the Bulk Actions and have no items selected.

In #44081 the 44081.3.2.diff provided a concept for the error;

<?php
if ( empty( $request_ids ) ) {
    add_settings_error(
        'bulk_action',
        'bulk_action',
        __( 'There were no requests to act on.' )
    );
    return;
}

Or it may be a better queue to simply disable the button when no checkboxes are checked. This avoids triggering the action in the first place.

Thanks

Change History (2)

#1 @SergeyBiryukov
14 months ago

  • Focuses coding-standards removed
  • Keywords ux-feedback added
Note: See TracTickets for help on using tickets.