diff --git a/src/js/media/views/modal.js b/src/js/media/views/modal.js index f7afb014b9..3804b18feb 100644 --- a/src/js/media/views/modal.js +++ b/src/js/media/views/modal.js @@ -132,6 +132,9 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{ return this; } + // Pause current audio/video even after closing the modal + $( '.mejs-pause button' ).click(); + // Enable page scrolling. $( 'body' ).removeClass( 'modal-open' );