Revert r18887 due to back compat issues. Fixes #18914.
For example 'intval' couldn't be used as a sanitisation callback. git-svn-id: https://develop.svn.wordpress.org/trunk@18951 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
103666d6b3
commit
83d7fbe1a6
@ -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…
Reference in New Issue
Block a user