After [29811], combine 2 `if` statements.
Built from https://develop.svn.wordpress.org/trunk@29812 git-svn-id: http://core.svn.wordpress.org/trunk@29578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b885885b67
commit
202ede7696
|
@ -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