Ticket #1867 (closed defect (bug): fixed)
add_option does not work in 1.6 at all
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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
Change History
mani_monaj — 6 years ago
-
attachment
functions.diff.txt
added
comment:1
masquerade — 6 years ago
- 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.
comment:2
masquerade — 6 years ago
- 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.

diff file to solve this error