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:
Mark Jaquith 2011-10-05 17:48:41 +00:00
parent 0fe5c09e64
commit 46737bef61
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;
if ( $sanitize_callback != '' )
add_filter( "sanitize_option_{$option_name}", $sanitize_callback );
add_filter( "sanitize_option_{$option_name}", $sanitize_callback, 10, 2 );
}
/**