WordPress.org

Make WordPress Core

Changeset 29812


Ignore:
Timestamp:
10/02/2014 04:15:07 AM (5 years ago)
Author:
wonderboymusic
Message:

After [29811], combine 2 if statements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-views.js

    r29811 r29812  
    60926092                            var removed = [], selection = this.controller.state().get( 'selection' );
    60936093
    6094                             if ( ! selection.length ) {
    6095                                 return;
    6096                             }
    6097 
    6098                             if ( ! confirm( l10n.warnBulkDelete ) ) {
     6094                            if ( ! selection.length || ! confirm( l10n.warnBulkDelete ) ) {
    60996095                                return;
    61006096                            }
Note: See TracChangeset for help on using the changeset viewer.