From f679cca0be41c292f1167a873a6426f532308c1e Mon Sep 17 00:00:00 2001 From: noisysocks Date: Tue, 6 Sep 2022 02:52:11 +0000 Subject: [PATCH] Script Loader: Pass startOfWeek setting to @wordpress/date Allows the block editor to respect the site's Week Starts On setting by defining `i10n.startOfWeek` when initialising the `@wordpress/date` module. This is a backport of https://github.com/WordPress/gutenberg/pull/41648. See #56467. Props andrewserong. Built from https://develop.svn.wordpress.org/trunk@54079 --- 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 6c8425ec51..11858ec9bf 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -404,6 +404,7 @@ function wp_default_packages_inline_scripts( $scripts ) { /* translators: %s: Duration. */ 'past' => __( '%s ago' ), ), + 'startOfWeek' => (int) get_option( 'start_of_week', 0 ), ), 'formats' => array( /* translators: Time format, see https://www.php.net/manual/datetime.format.php */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 42e897466a..236456ac33 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54078'; +$wp_version = '6.1-alpha-54079'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.