Opened 4 years ago
Closed 4 years ago
#57623 closed defect (bug) (duplicate)
Retrieves the current time based on specified type
| Reported by: | vahan889 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Date/Time | Version: | 6.1.1 |
| Severity: | critical | Keywords: | |
| Cc: | Focuses: |
Description
Hi !
During my work, I got a critical error that comes from this file: wp-includes/functions.php:75, says:
PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * int in ...\wp-includes\functions.php:75
That line (functions.php, line 75) says the following (FYI: the gmt_offset option is empty):
return $gmt ? time() : time() + (int) ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS );
I think it can be:
return $gmt ? time() : time() + (int) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS;
Thanks,
Vahan
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi there, welcome to WordPress Trac! Thanks for the report.
This is already fixed for WordPress 6.2 in [55054] / #57035.