diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index e822eb328d..1b2e06e56a 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -1947,10 +1947,11 @@ text: l10n.cancelPlaylistTitle, priority: 20, click: function() { - if ( previous ) + if ( previous ) { frame.setState( previous ); - else + } else { frame.close(); + } } }, separateCancel: new media.View({ @@ -1970,10 +1971,11 @@ text: l10n.cancelVideoPlaylistTitle, priority: 20, click: function() { - if ( previous ) + if ( previous ) { frame.setState( previous ); - else + } else { frame.close(); + } } }, separateCancel: new media.View({