Opened 20 years ago
Closed 20 years ago
#1859 closed defect (bug) (fixed)
Options not adding correctly
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | highest omg bbq | |
Severity: | critical | Version: | 1.6 |
Component: | General | Keywords: | options |
Focuses: | Cc: |
Description
Options don't appear to be added correctly, at least for the last few days. It's possibly due to the new caching.
I investigated and in wp-includes/functions.php the get_settings() function returns a value that isn't "=== false" when an option does not exist. add_option uses this function to check if an option exists and therefore thinks the option's already there when it isn't.
The attached patch uses get_row() instead of get_var() to query the options table, thus handling the event where option_value == 0.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [3023]) Options fixes from donncha. fixes #1859