mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 12:35:03 +00:00
Revert r18887 due to back compat issues. Fixes #18914.
For example 'intval' couldn't be used as a sanitisation callback. git-svn-id: http://svn.automattic.com/wordpress/trunk@18951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
936107846c
commit
ba7651277e
@ -1605,7 +1605,7 @@ function register_setting( $option_group, $option_name, $sanitize_callback = ''
|
|||||||
|
|
||||||
$new_whitelist_options[ $option_group ][] = $option_name;
|
$new_whitelist_options[ $option_group ][] = $option_name;
|
||||||
if ( $sanitize_callback != '' )
|
if ( $sanitize_callback != '' )
|
||||||
add_filter( "sanitize_option_{$option_name}", $sanitize_callback, 10, 2 );
|
add_filter( "sanitize_option_{$option_name}", $sanitize_callback );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user