Opened 21 years ago
Closed 21 years ago
#1859 closed defect (bug) (fixed)
Options not adding correctly
| Reported by: | donncha | Owned by: | |
|---|---|---|---|
| Priority: | highest omg bbq | Milestone: | |
| Component: | General | Version: | 1.6 |
| Severity: | critical | Keywords: | options |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [3023]) Options fixes from donncha. fixes #1859