Make WordPress Core


Ignore:
Timestamp:
03/18/2010 07:50:43 AM (15 years ago)
Author:
dd32
Message:

Remove Options -> Misc entirely as core as there are no longer options left there. Plugin registered options will be redirected to the General settings page. Fixes #12437

File:
1 edited

Legend:

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

    r13733 r13745  
    14531453function add_option_update_handler($option_group, $option_name, $sanitize_callback = '') {
    14541454    global $new_whitelist_options;
     1455
     1456    if ( 'misc' == $option_group )
     1457        $option_group = 'general';
     1458
    14551459    $new_whitelist_options[ $option_group ][] = $option_name;
    14561460    if ( $sanitize_callback != '' )
     
    14691473function remove_option_update_handler($option_group, $option_name, $sanitize_callback = '') {
    14701474    global $new_whitelist_options;
     1475
     1476    if ( 'misc' == $option_group )
     1477        $option_group = 'general';
     1478
    14711479    $pos = array_search( $option_name, (array) $new_whitelist_options );
    14721480    if ( $pos !== false )
Note: See TracChangeset for help on using the changeset viewer.