Merge pull request #31088 from LuigiPulcini/add/bulk-action-shortcircuit

Added logic to prematurely return on custom actions
This commit is contained in:
Néstor Soriano 2021-12-17 15:21:52 +01:00 committed by GitHub
commit 1a90c7245e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -807,6 +807,10 @@ jQuery( function( $ ) {
default :
$( 'select.variation_actions' ).trigger( do_variation_action );
data = $( 'select.variation_actions' ).triggerHandler( do_variation_action + '_ajax_data', data );
if ( null === data ) {
return;
}
break;
}