Make WordPress Core

Changeset 13749


Ignore:
Timestamp:
03/18/2010 05:32:27 PM (15 years ago)
Author:
nacin
Message:

Add deprecated notices for Options > Misc settings registrations. see #12437

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

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

    r13745 r13749  
    14251425 */
    14261426function register_setting($option_group, $option_name, $sanitize_callback = '') {
     1427    if ( 'misc' == $option_group )
     1428        _deprecated_argument( __FUNCTION__, '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
    14271429    return add_option_update_handler($option_group, $option_name, $sanitize_callback);
    14281430}
  • trunk/wp-admin/includes/template.php

    r13745 r13749  
    29812981    global $wp_settings_sections;
    29822982
    2983     if ( 'misc' == $page )
     2983    if ( 'misc' == $page ) {
     2984        _deprecated_argument( __FUNCTION__, '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
    29842985        $page = 'general';
     2986    }
    29852987
    29862988    if ( !isset($wp_settings_sections) )
     
    30193021    global $wp_settings_fields;
    30203022
    3021     if ( 'misc' == $page )
     3023    if ( 'misc' == $page ) {
     3024        _deprecated_argument( __FUNCTION__, '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
    30223025        $page = 'general';
     3026    }
    30233027
    30243028    if ( !isset($wp_settings_fields) )
Note: See TracChangeset for help on using the changeset viewer.