diff --git a/wp-includes/js/mediaelement/wp-mediaelement.js b/wp-includes/js/mediaelement/wp-mediaelement.js index fa8d3081af..c43c90289e 100644 --- a/wp-includes/js/mediaelement/wp-mediaelement.js +++ b/wp-includes/js/mediaelement/wp-mediaelement.js @@ -59,7 +59,7 @@ settings.customError = function ( media, node ) { // Make sure we only fall back to a download link for flash files. if ( -1 !== media.rendererName.indexOf( 'flash' ) || -1 !== media.rendererName.indexOf( 'flv' ) ) { - return '' + mejsL10n.strings['mejs.download-video'] + ''; + return '' + mejsL10n.strings['mejs.download-file'] + ''; } }; diff --git a/wp-includes/js/mediaelement/wp-mediaelement.min.js b/wp-includes/js/mediaelement/wp-mediaelement.min.js index 29efd14196..6c4c86889d 100644 --- a/wp-includes/js/mediaelement/wp-mediaelement.min.js +++ b/wp-includes/js/mediaelement/wp-mediaelement.min.js @@ -1 +1 @@ -!function(e,n){e.wp=e.wp||{},e.wp.mediaelement=new function(){var e={};return{initialize:function(){"undefined"!=typeof _wpmejsSettings&&(e=n.extend(!0,{},_wpmejsSettings)),e.classPrefix="mejs-",e.success=e.success||function(e){var n,t;e.rendererName&&-1!==e.rendererName.indexOf("flash")&&(n=e.attributes.autoplay&&"false"!==e.attributes.autoplay,t=e.attributes.loop&&"false"!==e.attributes.loop,n&&e.addEventListener("canplay",function(){e.play()},!1),t&&e.addEventListener("ended",function(){e.play()},!1))},e.customError=function(e,n){if(-1!==e.rendererName.indexOf("flash")||-1!==e.rendererName.indexOf("flv"))return''+mejsL10n.strings["mejs.download-video"]+""},n(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").filter(function(){return!n(this).parent().hasClass("mejs-mediaelement")}).mediaelementplayer(e)}}},n(e.wp.mediaelement.initialize)}(window,jQuery); \ No newline at end of file +!function(e,n){e.wp=e.wp||{},e.wp.mediaelement=new function(){var e={};return{initialize:function(){"undefined"!=typeof _wpmejsSettings&&(e=n.extend(!0,{},_wpmejsSettings)),e.classPrefix="mejs-",e.success=e.success||function(e){var n,t;e.rendererName&&-1!==e.rendererName.indexOf("flash")&&(n=e.attributes.autoplay&&"false"!==e.attributes.autoplay,t=e.attributes.loop&&"false"!==e.attributes.loop,n&&e.addEventListener("canplay",function(){e.play()},!1),t&&e.addEventListener("ended",function(){e.play()},!1))},e.customError=function(e,n){if(-1!==e.rendererName.indexOf("flash")||-1!==e.rendererName.indexOf("flv"))return''+mejsL10n.strings["mejs.download-file"]+""},n(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").filter(function(){return!n(this).parent().hasClass("mejs-mediaelement")}).mediaelementplayer(e)}}},n(e.wp.mediaelement.initialize)}(window,jQuery); \ No newline at end of file diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 85db9691bf..0e6bf8ae3f 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -984,35 +984,23 @@ function wp_default_scripts( &$scripts ) { array( 'language' => strtolower( strtok( determine_locale(), '_-' ) ), 'strings' => array( + 'mejs.download-file' => __( 'Download File' ), 'mejs.install-flash' => __( 'You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/' ), - 'mejs.fullscreen-off' => __( 'Turn off Fullscreen' ), - 'mejs.fullscreen-on' => __( 'Go Fullscreen' ), - 'mejs.download-video' => __( 'Download Video' ), 'mejs.fullscreen' => __( 'Fullscreen' ), - 'mejs.time-jump-forward' => array( __( 'Jump forward 1 second' ), __( 'Jump forward %1 seconds' ) ), - 'mejs.loop' => __( 'Toggle Loop' ), 'mejs.play' => __( 'Play' ), 'mejs.pause' => __( 'Pause' ), - 'mejs.close' => __( 'Close' ), 'mejs.time-slider' => __( 'Time Slider' ), 'mejs.time-help-text' => __( 'Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.' ), - 'mejs.time-skip-back' => array( __( 'Skip back 1 second' ), __( 'Skip back %1 seconds' ) ), - 'mejs.captions-subtitles' => __( 'Captions/Subtitles' ), - 'mejs.captions-chapters' => __( 'Chapters' ), - 'mejs.none' => __( 'None' ), - 'mejs.mute-toggle' => __( 'Mute Toggle' ), + 'mejs.live-broadcast' => __( 'Live Broadcast' ), 'mejs.volume-help-text' => __( 'Use Up/Down Arrow keys to increase or decrease volume.' ), 'mejs.unmute' => __( 'Unmute' ), 'mejs.mute' => __( 'Mute' ), 'mejs.volume-slider' => __( 'Volume Slider' ), 'mejs.video-player' => __( 'Video Player' ), 'mejs.audio-player' => __( 'Audio Player' ), - 'mejs.ad-skip' => __( 'Skip ad' ), - 'mejs.ad-skip-info' => array( __( 'Skip in 1 second' ), __( 'Skip in %1 seconds' ) ), - 'mejs.source-chooser' => __( 'Source Chooser' ), - 'mejs.stop' => __( 'Stop' ), - 'mejs.speed-rate' => __( 'Speed Rate' ), - 'mejs.live-broadcast' => __( 'Live Broadcast' ), + 'mejs.captions-subtitles' => __( 'Captions/Subtitles' ), + 'mejs.captions-chapters' => __( 'Chapters' ), + 'mejs.none' => __( 'None' ), 'mejs.afrikaans' => __( 'Afrikaans' ), 'mejs.albanian' => __( 'Albanian' ), 'mejs.arabic' => __( 'Arabic' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 3ffd15c830..6080ac7dfc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47093'; +$wp_version = '5.4-alpha-47094'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.