WordPress.org

Make WordPress Core

Ticket #29193: 29193.diff

File 29193.diff, 538 bytes (added by dashaluna, 7 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 = '' 
    17411741
    17421742        $new_whitelist_options[ $option_group ][] = $option_name;
    17431743        if ( $sanitize_callback != '' )
    1744                 add_filter( "sanitize_option_{$option_name}", $sanitize_callback );
     1744                add_filter( "sanitize_option_{$option_name}", $sanitize_callback, 10, 2 );
    17451745}
    17461746
    17471747/**