We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d3de27 commit f9ff891Copy full SHA for f9ff891
1 file changed
src/js/_enqueues/admin/common.js
@@ -1350,9 +1350,15 @@ $( function() {
1350
event.stopPropagation();
1351
$( 'html, body' ).animate( { scrollTop: 0 } );
1352
1353
+ var noSelectionMessages = {
1354
+ 'changeit': __( 'Please select a role to change.' ),
1355
+ 'bulk_action': __( 'Please select a bulk action to perform.' )
1356
+ };
1357
+
1358
var errorMessage = value !== '-1' ?
1359
__( 'Please select at least one item to perform this action on.' ) :
- __( 'Please select a bulk action to perform.' );
1360
+ noSelectionMessages[ submitterName ] || noSelectionMessages['bulk_action'];
1361
1362
addAdminNotice( {
1363
id: value !== '-1' ? 'no-items-selected' : 'no-bulk-action-selected',
1364
type: 'error',
0 commit comments