Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#1859 closed defect (bug) (fixed)

Options not adding correctly

Reported by: donncha's profile donncha 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)

patch.txt (1.2 KB) - added by donncha 20 years ago.

Download all attachments as: .zip

Change History (2)

@donncha
20 years ago

#1 @ryan
20 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3023]) Options fixes from donncha. fixes #1859

Note: See TracTickets for help on using tickets.