mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-06 13:44:30 +00:00
Editor: Ensure that timezone.offset passed to @wordpress/date is a float
Fixes inconsistent type of `timezone.offset` passed to `@wordpress/date`. It should always be a float, never a string. Props talldanwp. Fixes #56459. git-svn-id: https://develop.svn.wordpress.org/trunk@53956 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -416,7 +416,7 @@ function wp_default_packages_inline_scripts( $scripts ) {
|
||||
'datetimeAbbreviated' => __( 'M j, Y g:i a' ),
|
||||
),
|
||||
'timezone' => array(
|
||||
'offset' => get_option( 'gmt_offset', 0 ),
|
||||
'offset' => (float) get_option( 'gmt_offset', 0 ),
|
||||
'string' => $timezone_string,
|
||||
'abbr' => $timezone_abbr,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user