Ticket #29193: 29193.diff
File 29193.diff, 538 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/includes/plugin.php
diff --git src/wp-admin/includes/plugin.php src/wp-admin/includes/plugin.php index 209b5c9..9633207 100644
function register_setting( $option_group, $option_name, $sanitize_callback = '' 1741 1741 1742 1742 $new_whitelist_options[ $option_group ][] = $option_name; 1743 1743 if ( $sanitize_callback != '' ) 1744 add_filter( "sanitize_option_{$option_name}", $sanitize_callback );1744 add_filter( "sanitize_option_{$option_name}", $sanitize_callback, 10, 2 ); 1745 1745 } 1746 1746 1747 1747 /**