[wp-trac] [WordPress Trac] #60629: PHP Fatal error: Uncaught TypeError: gmdate(): Argument #2 ($timestamp) must be of type ?int, string given in wp-admin/includes/dashboard.php:1025
WordPress Trac
noreply at wordpress.org
Wed Sep 18 22:35:51 UTC 2024
#60629: PHP Fatal error: Uncaught TypeError: gmdate(): Argument #2 ($timestamp)
must be of type ?int, string given in wp-admin/includes/dashboard.php:1025
------------------------------------+--------------------------------
Reporter: vanhoucke | Owner: hellofromTonya
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.7
Component: Date/Time | Version: 6.4.3
Severity: normal | Resolution: fixed
Keywords: php80 has-patch commit | Focuses: php-compatibility
------------------------------------+--------------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"59064" 59064]:
{{{
#!CommitTicketReference repository="" revision="59064"
Date/Time, PHP Compat: Prevent type errors using GMT offset option.
Prevents a potential type errors when making use of the `gmt_offset`
option by casting the value to a float prior to performing calculations
with the value.
This mainly accounts for incorrect storage of values, such as an empty
string or city name.
Follow up to [58923].
Props chaion07, hellofromtonya, kirasong, mhshohel, mukesh27,
nicolefurlan, nihar007, nurielmeni, oglekler, peterwilsoncc, prionkor,
rajinsharwar, rarst, rleeson, sabernhardt, SergeyBiryukov, swissspidy,
toastercookie, verygoode.
Fixes #56358, #58986, #60629.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60629#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list