#26479 closed defect (bug) (fixed)
unregister_setting not working
| Reported by: | cvedovini | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Plugins | Version: | 2.6 |
| Severity: | normal | Keywords: | has-patch commit 3.9-early |
| Cc: | Focuses: | administration |
Description (last modified by )
The unregister_setting function is not working, there's a bug at line 1743 of the plugin.php file:
$pos = array_search( $option_name, (array) $new_whitelist_options );
should be
$pos = array_search( $option_name, (array) $new_whitelist_options[$option_group] );
Attachments (1)
Change History (9)
#1
@
13 years ago
- Description modified (diff)
- Keywords has-patch needs-testing added
- Version 3.7.1 → 2.6
#2
@
13 years ago
I could confirm the issue and the fix from cvedovini seems to work for me. Uploaded a patch following his change proposal.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
update $new_whitelist_options search