WordPress.org

Make WordPress Core

Changeset 13745


Ignore:
Timestamp:
03/18/2010 07:50:43 AM (9 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

Location:
trunk/wp-admin
Files:
1 deleted
3 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 )
  • trunk/wp-admin/includes/template.php

    r13733 r13745  
    29812981    global $wp_settings_sections;
    29822982
     2983    if ( 'misc' == $page )
     2984        $page = 'general';
     2985
    29832986    if ( !isset($wp_settings_sections) )
    29842987        $wp_settings_sections = array();
     
    30153018function add_settings_field($id, $title, $callback, $page, $section = 'default', $args = array()) {
    30163019    global $wp_settings_fields;
     3020
     3021    if ( 'misc' == $page )
     3022        $page = 'general';
    30173023
    30183024    if ( !isset($wp_settings_fields) )
  • trunk/wp-admin/menu.php

    r13733 r13745  
    194194    $submenu['options-general.php'][35] = array(__('Privacy'), 'manage_options', 'options-privacy.php');
    195195    $submenu['options-general.php'][40] = array(__('Permalinks'), 'manage_options', 'options-permalink.php');
    196     if ( is_super_admin() )
    197         $submenu['options-general.php'][45] = array(__('Miscellaneous'), 'manage_options', 'options-misc.php');
    198196
    199197$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group
Note: See TracChangeset for help on using the changeset viewer.