diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
index 96e26b0712..c90fdfa70c 100644
|
|
function wp_default_scripts( &$scripts ) { |
355 | 355 | $scripts->add( 'mediaelement', false, array( 'jquery', 'mediaelement-core', 'mediaelement-migrate' ), '4.2.6-78496d1' ); |
356 | 356 | $scripts->add( 'mediaelement-core', "/wp-includes/js/mediaelement/mediaelement-and-player$suffix.js", array(), '4.2.6-78496d1', 1 ); |
357 | 357 | $scripts->add( 'mediaelement-migrate', "/wp-includes/js/mediaelement/mediaelement-migrate$suffix.js", array(), false, 1); |
| 358 | $mejs_language = strtolower( str_replace( '_', '-', is_admin() ? get_user_locale() : get_locale() ) ); |
| 359 | if ( $mejs_language !== 'zh-cn' ) { // The only locale with a country code currently. |
| 360 | $mejs_language = strtok( $mejs_language, '-' ); |
| 361 | } |
| 362 | |
358 | 363 | did_action( 'init' ) && $scripts->localize( 'mediaelement', 'mejsL10n', array( |
359 | | 'language' => get_bloginfo( 'language' ), |
| 364 | 'language' => $mejs_language, |
360 | 365 | 'strings' => array( |
361 | 366 | '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/' ), |
362 | 367 | 'mejs.fullscreen-off' => __( 'Turn off Fullscreen' ), |