[wp-trac] [WordPress Trac] #32848: Null values for Update Options does not reset in $all_options
WordPress Trac
noreply at wordpress.org
Fri Apr 5 15:11:16 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:
Component: Cache API | Version: 4.2.2
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests bulk- | Focuses:
reopened | performance
-------------------------------------------------+-------------------------
Changes (by pbearne):
* owner: (none) => pbearne
* status: new => accepted
Comment:
isset is faster than array_key_exist
https://stackoverflow.com/questions/3210935/whats-the-difference-between-
isset-and-array-key-exists
we could do both which is only a little slower
isset() || array_key_exists()
Thoughts
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32848#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list