WordPress.org

Make WordPress Core

Ticket #26084: ticket-26084.diff

File ticket-26084.diff, 785 bytes (added by KingYes, 8 years ago)

ticket-26084.diff

  • wp-admin/includes/plugin.php

     
    17141714
    17151715        $new_whitelist_options[ $option_group ][] = $option_name;
    17161716        if ( $sanitize_callback != '' )
    1717                 add_filter( "sanitize_option_{$option_name}", $sanitize_callback );
     1717                add_filter( "sanitize_option_{$option_name}", $sanitize_callback, 10, 2 );
    17181718}
    17191719
    17201720/**
     
    17441744        if ( $pos !== false )
    17451745                unset( $new_whitelist_options[ $option_group ][ $pos ] );
    17461746        if ( $sanitize_callback != '' )
    1747                 remove_filter( "sanitize_option_{$option_name}", $sanitize_callback );
     1747                remove_filter( "sanitize_option_{$option_name}", $sanitize_callback, 10, 2 );
    17481748}
    17491749
    17501750/**