WordPress.org

Make WordPress Core

Changeset 32905


Ignore:
Timestamp:
06/22/15 20:50:30 (20 months ago)
Author:
wonderboymusic
Message:

In unregister_setting(), search for $option_name in a segment of $new_whitelist_options keyed by $option_group.

Props nofearinc.
Fixes #26479.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r32672 r32905  
    18351835    } 
    18361836 
    1837     $pos = array_search( $option_name, (array) $new_whitelist_options ); 
     1837    $pos = array_search( $option_name, (array) $new_whitelist_options[ $option_group ] ); 
    18381838    if ( $pos !== false ) 
    18391839        unset( $new_whitelist_options[ $option_group ][ $pos ] ); 
Note: See TracChangeset for help on using the changeset viewer.