From 202ede769687403d3d334742248f30b330278c80 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 2 Oct 2014 04:16:17 +0000 Subject: [PATCH] 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 --- wp-includes/js/media-views.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index cea65b4e3a..3477365256 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -6091,11 +6091,7 @@ click: function() { var removed = [], selection = this.controller.state().get( 'selection' ); - if ( ! selection.length ) { - return; - } - - if ( ! confirm( l10n.warnBulkDelete ) ) { + if ( ! selection.length || ! confirm( l10n.warnBulkDelete ) ) { return; }