After [29811], combine 2 `if` statements.
git-svn-id: https://develop.svn.wordpress.org/trunk@29812 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7711e9648c
commit
f52ca9047e
|
@ -6091,11 +6091,7 @@
|
||||||
click: function() {
|
click: function() {
|
||||||
var removed = [], selection = this.controller.state().get( 'selection' );
|
var removed = [], selection = this.controller.state().get( 'selection' );
|
||||||
|
|
||||||
if ( ! selection.length ) {
|
if ( ! selection.length || ! confirm( l10n.warnBulkDelete ) ) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( ! confirm( l10n.warnBulkDelete ) ) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue