WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 2 months ago

#26479 new defect (bug)

unregister_setting not working

Reported by: cvedovini Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.6
Component: Plugins Keywords: has-patch commit 3.9-early
Focuses: administration Cc:

Description (last modified by nofearinc)

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)

26479.diff (538 bytes) - added by nofearinc 4 months ago.
update $new_whitelist_options search

Download all attachments as: .zip

Change History (7)

comment:1 nofearinc4 months ago

  • Description modified (diff)
  • Keywords has-patch needs-testing added
  • Version changed from 3.7.1 to 2.6

nofearinc4 months ago

update $new_whitelist_options search

comment:2 nofearinc4 months ago

I could confirm the issue and the fix from cvedovini seems to work for me. Uploaded a patch following his change proposal.

comment:3 goto104 months ago

  • Cc dromsey@… added

comment:4 SergeyBiryukov4 months ago

  • Keywords commit 3.9-early added; needs-testing removed
  • Milestone changed from Awaiting Review to Future Release

Introduced in [8802], modified in [11021].

comment:5 nacin2 months ago

  • Component changed from Plugins to Admin APIs
  • Focuses administration added

comment:6 nacin2 months ago

  • Component changed from Admin APIs to Plugins

Sorry for the noise.

Note: See TracTickets for help on using tickets.