[wp-trac] [WordPress Trac] #32848: Null values for Update Options does not reset in $all_options
WordPress Trac
noreply at wordpress.org
Fri Jul 26 11:29:37 UTC 2024
#32848: Null values for Update Options does not reset in $all_options
--------------------------------------+--------------------------
Reporter: MikeNGarrett | Owner: pbearne
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.7
Component: Cache API | Version: 4.2.2
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: performance
--------------------------------------+--------------------------
Comment (by MikeNGarrett):
I've opened and closed a business, changed cities, bought a house,
started a family, and gone through a pandemic since I opened this ticket.
...but for some reason I still remember the details of this ticket.
Yes, the issue is that null values in an array are cast to empty strings
when being stored in the database. In cache, they are correctly stored as
null.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32848#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list