Opened 7 years ago
Closed 7 years ago
#47494 closed defect (bug) (duplicate)
current_time function return types
| Reported by: | zzhovo | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Date/Time | Version: | 5.2.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | docs |
Description
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.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
possible patch