From 87756494cc335d3d2fe7d0b26fa3d712cb7d5fcc Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Wed, 1 Jul 2020 20:21:06 +0000 Subject: [PATCH] Media: Enable JavaScript translations for the media-views script after [48232]. See #48463. Built from https://develop.svn.wordpress.org/trunk@48268 git-svn-id: http://core.svn.wordpress.org/trunk@48037 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 3141b9b897..b7e2f6bfa3 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -1279,7 +1279,8 @@ function wp_default_scripts( $scripts ) { ) ); - $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array( 'suggest', 'wp-lists', 'postbox', 'tags-box', 'underscore', 'word-count', 'wp-a11y', 'wp-sanitize', 'clipboard', 'wp-i18n' ), false, 1 ); + $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array( 'suggest', 'wp-lists', 'postbox', 'tags-box', 'underscore', 'word-count', 'wp-a11y', 'wp-sanitize', 'clipboard' ), false, 1 ); + $scripts->set_translations( 'post' ); did_action( 'init' ) && $scripts->localize( 'post', 'postL10n', diff --git a/wp-includes/version.php b/wp-includes/version.php index 35154da1c1..75b6cd0303 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48267'; +$wp_version = '5.5-alpha-48268'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.