Ticket #40144: 40144.3.diff
| File 40144.3.diff, 1.9 KB (added by , 4 years ago) |
|---|
-
src/js/_enqueues/vendor/mediaelement/wp-mediaelement.js
19 19 * @return {void} 20 20 */ 21 21 function initialize() { 22 var selectors = []; 23 22 24 if ( typeof _wpmejsSettings !== 'undefined' ) { 23 25 settings = $.extend( true, {}, _wpmejsSettings ); 24 26 } … … 63 65 } 64 66 }; 65 67 68 if ( 'undefined' === typeof settings.videoShortcodeLibrary || 'mediaelement' === settings.videoShortcodeLibrary ) { 69 selectors.push( '.wp-video-shortcode' ); 70 } 71 if ( 'undefined' === typeof settings.audioShortcodeLibrary || 'mediaelement' === settings.audioShortcodeLibrary ) { 72 selectors.push( '.wp-audio-shortcode' ); 73 } 74 if ( ! selectors.length ) { 75 return; 76 } 77 66 78 // Only initialize new media elements. 67 $( '.wp-audio-shortcode, .wp-video-shortcode')79 $( selectors.join( ', ' ) ) 68 80 .not( '.mejs-container' ) 69 81 .filter(function () { 70 82 return ! $( this ).parent().hasClass( 'mejs-mediaelement' ); -
src/wp-includes/script-loader.php
1109 1109 'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ), 1110 1110 'classPrefix' => 'mejs-', 1111 1111 'stretching' => 'responsive', 1112 /** This filter is documented in wp-includes/media.php */ 1113 'audioShortcodeLibrary' => apply_filters( 'wp_audio_shortcode_library', 'mediaelement' ), 1114 /** This filter is documented in wp-includes/media.php */ 1115 'videoShortcodeLibrary' => apply_filters( 'wp_video_shortcode_library', 'mediaelement' ), 1112 1116 ); 1113 1117 did_action( 'init' ) && $scripts->localize( 1114 1118 'mediaelement',
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)