#1867 closed defect (bug) (fixed)
add_option does not work in 1.6 at all
| Reported by: |
|
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)
Change History (3)
Note: See
TracTickets for help on using
tickets.
diff file to solve this error