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 git-svn-id: http://core.svn.wordpress.org/trunk@53638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50493b7405
commit
4a5f783888
|
@ -404,6 +404,7 @@ function wp_default_packages_inline_scripts( $scripts ) {
|
||||||
/* translators: %s: Duration. */
|
/* translators: %s: Duration. */
|
||||||
'past' => __( '%s ago' ),
|
'past' => __( '%s ago' ),
|
||||||
),
|
),
|
||||||
|
'startOfWeek' => (int) get_option( 'start_of_week', 0 ),
|
||||||
),
|
),
|
||||||
'formats' => array(
|
'formats' => array(
|
||||||
/* translators: Time format, see https://www.php.net/manual/datetime.format.php */
|
/* translators: Time format, see https://www.php.net/manual/datetime.format.php */
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue