Ticket #1867 (closed defect (bug): fixed)

Opened 6 years ago

Last modified 6 years ago

add_option does not work in 1.6 at all

Reported by: mani_monaj Owned by: anonymous
Priority: highest omg bbq Milestone:
Component: Administration Version: 1.2
Severity: blocker Keywords: plugins, add_option, custom option, update_option
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

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

Change History

diff file to solve this error

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

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.

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

Er, typo above, fixed in [3028]

Note: See TracTickets for help on using tickets.