[wp-trac] [WordPress Trac] #47494: current_time function return types
WordPress Trac
noreply at wordpress.org
Thu Jun 6 13:54:48 UTC 2019
#47494: current_time function return types
--------------------------+-----------------------------
Reporter: zzhovo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: 5.2.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
WP version 5.2.1, downloaded from https://wordpress.org/download/
After a fresh install, I've changed the timezone to `Yerevan` from the
global settings - /wp-admin/options-general.php
After the save, the `get_option( 'gmt_offset' )` started to return `float`
and the function `current_time` located in `\wp-includes\functions.php#65`
also started to return `float`, but it should return `int` or `string`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47494>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list