Merge pull request #31088 from LuigiPulcini/add/bulk-action-shortcircuit
Added logic to prematurely return on custom actions
This commit is contained in:
commit
1a90c7245e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue