Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1867 closed defect (bug) (fixed)

add_option does not work in 1.6 at all

Reported by: mani_monaj Owned by:
Milestone: Priority: highest omg bbq
Severity: blocker Version: 1.2
Component: Administration Keywords: plugins, add_option, custom option, update_option
Focuses: Cc:


As I feaugered out , the function add_option in wp-includes/functions.php does not add new option therefore update_option does not work eighter!

This is because of these lines

Make sure the option doesn't already exist

if ( false !== get_option($name, 'options') )


it always cause function to exit, we should find another way to avoid duplicate or just comment these lines

These lines are not present in 1.5.2

Attachments (1)

functions.diff.txt (516 bytes) - added by mani_monaj 15 years ago.
diff file to solve this error

Download all attachments as: .zip

Change History (3)

15 years ago

diff file to solve this error

#1 @masquerade
15 years ago

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

This has already been fixed in [3048] in a more appropriate manner. Please make sure you're running the latest version out of subversion before posting bug reports.

#2 @masquerade
15 years ago

  • Severity changed from major to blocker
  • Version changed from 1.6 to 1.2

Er, typo above, fixed in [3028]

Note: See TracTickets for help on using tickets.