[wp-trac] [WordPress Trac] #58471: transient variable "doing_cron" cause a fatal error when the transient value is empty
WordPress Trac
noreply at wordpress.org
Mon Sep 11 05:25:57 UTC 2023
#58471: transient variable "doing_cron" cause a fatal error when the transient
value is empty
--------------------------+----------------------------
Reporter: fzhantw | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.4
Component: Cron API | Version: 6.2.2
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+----------------------------
Changes (by peterwilsoncc):
* owner: (none) => peterwilsoncc
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"56553" 56553]:
{{{
#!CommitTicketReference repository="" revision="56553"
Cron: Cast `doing_cron` transient to a float.
Cast the `doing_cron` transient value to a float to prevent type errors if
the transient is not set (in which case it returns `false`) or another
unexpected type.
Props fzhantw, ankitmaru.
Fixes #58471.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58471#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list