[wp-trac] [WordPress Trac] #26479: unregister_setting not working

WordPress Trac noreply at wordpress.org
Sun Dec 8 11:50:20 UTC 2013


#26479: unregister_setting not working
-------------------------------------+------------------------------
 Reporter:  cvedovini                |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Plugins                  |     Version:  2.6
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------
Changes (by nofearinc):

 * keywords:   => has-patch needs-testing
 * version:  3.7.1 => 2.6


Old description:

> 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] );

New description:

 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] );
 }}}

--

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26479#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list