WordPress.org

Make WordPress Core

Changeset 18887


Ignore:
Timestamp:
10/05/2011 05:48:41 PM (10 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r18136 r18887  
    16061606    $new_whitelist_options[ $option_group ][] = $option_name;
    16071607    if ( $sanitize_callback != '' )
    1608         add_filter( "sanitize_option_{$option_name}", $sanitize_callback );
     1608        add_filter( "sanitize_option_{$option_name}", $sanitize_callback, 10, 2 );
    16091609}
    16101610
Note: See TracChangeset for help on using the changeset viewer.