From c89dab8c987b59a76af57b67189aa9a5e3595d18 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sun, 5 Jan 2020 13:11:04 +0000 Subject: [PATCH] Media: After [46375], enable JavaScript translations for the `media-views` script. See #49134. Built from https://develop.svn.wordpress.org/trunk@47040 git-svn-id: http://core.svn.wordpress.org/trunk@46840 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 5929413629..0267f9cd11 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -1295,6 +1295,7 @@ function wp_default_scripts( &$scripts ) { // To enqueue media-views or media-editor, call wp_enqueue_media(). // Both rely on numerous settings, styles, and templates to operate correctly. $scripts->add( 'media-views', "/wp-includes/js/media-views$suffix.js", array( 'utils', 'media-models', 'wp-plupload', 'jquery-ui-sortable', 'wp-mediaelement', 'wp-api-request', 'wp-a11y', 'wp-i18n' ), false, 1 ); + $scripts->set_translations( 'media-views' ); $scripts->add( 'media-editor', "/wp-includes/js/media-editor$suffix.js", array( 'shortcode', 'media-views' ), false, 1 ); $scripts->add( 'media-audiovideo', "/wp-includes/js/media-audiovideo$suffix.js", array( 'media-editor' ), false, 1 ); $scripts->add( 'mce-view', "/wp-includes/js/mce-view$suffix.js", array( 'shortcode', 'jquery', 'media-views', 'media-audiovideo' ), false, 1 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 97d118ed97..e74e19d666 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47039'; +$wp_version = '5.4-alpha-47040'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.