Pass both parameters to the sanitize_option_FOO callback set in register_setting(). props lumination. fixes #15335
git-svn-id: https://develop.svn.wordpress.org/trunk@18887 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0fe5c09e64
commit
46737bef61
@ -1605,7 +1605,7 @@ function register_setting( $option_group, $option_name, $sanitize_callback = ''
|
||||
|
||||
$new_whitelist_options[ $option_group ][] = $option_name;
|
||||
if ( $sanitize_callback != '' )
|
||||
add_filter( "sanitize_option_{$option_name}", $sanitize_callback );
|
||||
add_filter( "sanitize_option_{$option_name}", $sanitize_callback, 10, 2 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user