From 3209729f5fa3e8f5c64b8e203a3769a8e670f3c9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 24 Feb 2020 23:07:09 +0000 Subject: [PATCH] Accessibility: Widgets: Restore missing string in script loader. The string was previously added in [42794] and accidentally removed in [44163]. Props garrett-eclipse, audrasjb. Fixes #49505. Built from https://develop.svn.wordpress.org/trunk@47353 git-svn-id: http://core.svn.wordpress.org/trunk@47140 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 9 +++++---- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 60994dce30..634153ba99 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -1352,16 +1352,17 @@ function wp_default_scripts( &$scripts ) { $scripts->add( 'admin-gallery', "/wp-admin/js/gallery$suffix.js", array( 'jquery-ui-sortable' ) ); - $scripts->add( 'admin-widgets', "/wp-admin/js/widgets$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), false, 1 ); + $scripts->add( 'admin-widgets', "/wp-admin/js/widgets$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'wp-a11y' ), false, 1 ); did_action( 'init' ) && $scripts->add_inline_script( 'admin-widgets', sprintf( 'wpWidgets.l10n = %s;', wp_json_encode( array( - 'save' => __( 'Save' ), - 'saved' => __( 'Saved' ), - 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), + 'save' => __( 'Save' ), + 'saved' => __( 'Saved' ), + 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), + 'widgetAdded' => __( 'Widget has been added to the selected sidebar' ), ) ) ) diff --git a/wp-includes/version.php b/wp-includes/version.php index e0f06b973c..a80727b803 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-beta2-47352'; +$wp_version = '5.4-beta2-47353'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.