Make WordPress Core

Changeset 54079


Ignore:
Timestamp:
09/06/2022 02:50:35 AM (2 years ago)
Author:
noisysocks
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r54048 r54079  
    405405                            'past'   => __( '%s ago' ),
    406406                        ),
     407                        'startOfWeek'   => (int) get_option( 'start_of_week', 0 ),
    407408                    ),
    408409                    'formats'  => array(
Note: See TracChangeset for help on using the changeset viewer.