mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Add deprecated notices for Options > Misc settings registrations. see #12437
git-svn-id: https://develop.svn.wordpress.org/trunk@13749 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1424,6 +1424,8 @@ function user_can_access_admin_page() {
|
||||
* @return unknown
|
||||
*/
|
||||
function register_setting($option_group, $option_name, $sanitize_callback = '') {
|
||||
if ( 'misc' == $option_group )
|
||||
_deprecated_argument( __FUNCTION__, '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
|
||||
return add_option_update_handler($option_group, $option_name, $sanitize_callback);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user