Ticket #27389: 27389-timeout.diff
File 27389-timeout.diff, 1.0 KB (added by , 10 years ago) |
---|
-
src/wp-includes/js/mce-view.js
339 339 * @mixin 340 340 */ 341 341 wp.mce.media = { 342 loaded: false, 342 343 /** 343 344 * @global wp.shortcode 344 345 * … … 460 461 media = wp.media.view.MediaDetails.prepareSrc( media.get(0) ); 461 462 462 463 setTimeout( function() { 464 wp.mce.media.loaded = true; 463 465 self.player = new MediaElementPlayer( media, this.mejsSettings ); 464 }, 75);466 }, wp.mce.media.loaded ? 10 : 500 ); 465 467 }, 466 468 467 469 /** -
src/wp-includes/js/mediaelement/wp-mediaelement.css
72 72 max-width: 100%; 73 73 } 74 74 75 .wp-playlist audio {75 .wp-playlist audio, audio.wp-audio-shortcode { 76 76 display: none; 77 77 max-width: 100%; 78 78 width: 400px;