Make WordPress Core


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

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

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.