WordPress.org

Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 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:

Description

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') )

return;

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 13 years ago.
diff file to solve this error

Download all attachments as: .zip

Change History (3)

@mani_monaj
13 years ago

diff file to solve this error

#1 @masquerade
13 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
13 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.