[wp-trac] [WordPress Trac] #58986: TypeError: Unsupported operand types: string * int *
WordPress Trac
noreply at wordpress.org
Wed Sep 18 22:35:50 UTC 2024
#58986: TypeError: Unsupported operand types: string * int *
-------------------------------------+-------------------------------------
Reporter: nurielmeni | Owner: hellofromTonya
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.7
Component: Date/Time | Version: 6.2.2
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit- | Focuses: rest-api, php-
tests needs-testing php80 commit | 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/58986#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list