WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/18/2010 07:50:43 AM (10 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/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) )
Note: See TracChangeset for help on using the changeset viewer.