Make WordPress Core

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)

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

Download all attachments as: .zip

Change History (2)

#1 @ryan
21 years ago

  • Resolution → fixed
  • Status new → closed

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

Note: See TracTickets for help on using tickets.