Make WordPress Core


Ignore:
Timestamp:
08/30/2022 01:02:46 AM (2 years ago)
Author:
noisysocks
Message:

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.

File:
1 edited

Legend:

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

    r53725 r53956  
    417417                    ),
    418418                    'timezone' => array(
    419                         'offset' => get_option( 'gmt_offset', 0 ),
     419                        'offset' => (float) get_option( 'gmt_offset', 0 ),
    420420                        'string' => $timezone_string,
    421421                        'abbr'   => $timezone_abbr,
Note: See TracChangeset for help on using the changeset viewer.