Changes between Initial Version and Version 1 of Ticket #22192, comment 55
- Timestamp:
- 09/26/2023 01:55:44 PM (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22192, comment 55
initial v1 1 1 @Mamaduka @mukesh27 As far as I can tell, I can think of two potential solutions to the problem: 2 2 * Either we temporarily remove any `pre_option_{$option}` filters before getting the option from the database within `update_option()`, in order to get the ''actual'' option. The value won't be otherwise used, so I think that could be fine. 3 * Or we make an actual database query to see whether the value exists in the database. That sounds like a more reliable solution to the underlying problem , however it could introduce other unintended side effects.3 * Or we make an actual database query to see whether the value exists in the database. That sounds like a more reliable solution to the underlying problem (checking a default isn't ever going to be fully reliable), however it could introduce other unintended side effects. 4 4 5 5 I'm personally leaning towards the first so far since it would be a simpler change.