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:
duck_ 2011-10-12 16:35:33 +00:00
parent 936107846c
commit ba7651277e
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
} }
/** /**