#26479 closed defect (bug) (fixed)
unregister_setting not working
Reported by: | cvedovini | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 2.6 |
Component: | Plugins | Keywords: | has-patch commit 3.9-early |
Focuses: | administration | Cc: |
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
@
11 years ago
- Description modified (diff)
- Keywords has-patch needs-testing added
- Version changed from 3.7.1 to 2.6
#2
@
11 years ago
I could confirm the issue and the fix from cvedovini seems to work for me. Uploaded a patch following his change proposal.
#4
@
11 years ago
- Keywords commit 3.9-early added; needs-testing removed
- Milestone changed from Awaiting Review to Future Release
Note: See
TracTickets for help on using
tickets.
update $new_whitelist_options search