WordPress.org

Make WordPress Core

Changeset 18951


Ignore:
Timestamp:
10/12/11 16:35:33 (3 years ago)
Author:
duck_
Message:

Revert r18887 due to back compat issues. Fixes #18914.

For example 'intval' couldn't be used as a sanitisation callback.

File:
1 edited

Legend:

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

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