Make WordPress Core

Ticket #31058: 31058.document-fragment.patch

File 31058.document-fragment.patch, 1.2 KB (added by afercia, 10 years ago)
  • src/wp-includes/js/media/grid.js

     
    19931993                wp.media.mixin.removeAllPlayers();
    19941994                this.$( 'audio, video' ).each( function (i, elem) {
    19951995                        var el = MediaDetails.prepareSrc( elem );
    1996                         new window.MediaElementPlayer( el, wp.media.mixin.mejsSettings );
     1996                        setTimeout( function() {
     1997                                new window.MediaElementPlayer( el, wp.media.mixin.mejsSettings );
     1998                        }, 1 );
    19971999                } );
    19982000        }
    19992001});
  • src/wp-includes/js/media/views/attachment/details-two-column.js

     
    3232                wp.media.mixin.removeAllPlayers();
    3333                this.$( 'audio, video' ).each( function (i, elem) {
    3434                        var el = MediaDetails.prepareSrc( elem );
    35                         new window.MediaElementPlayer( el, wp.media.mixin.mejsSettings );
     35                        setTimeout( function() {
     36                                new window.MediaElementPlayer( el, wp.media.mixin.mejsSettings );
     37                        }, 1 );
    3638                } );
    3739        }
    3840});