Pass both parameters to the sanitize_option_FOO callback set in register_setting(). props lumination. fixes #15335

git-svn-id: http://svn.automattic.com/wordpress/trunk@18887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2011-10-05 17:48:41 +00:00
parent 37aae9f46f
commit bc3fc076e1

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