WordPress.org

Make WordPress Core

Ticket #9116: 9116.diff

File 9116.diff, 609 bytes (added by Denis-de-Bernardy, 13 years ago)
  • wp-admin/includes/plugin.php

     
    10131013 */
    10141014function remove_option_update_handler($option_group, $option_name, $sanitize_callback = '') {
    10151015        global $new_whitelist_options;
    1016         $pos = array_search( $option_name, $new_whitelist_options );
     1016        $pos = array_search( $option_name, (array) $new_whitelist_options );
    10171017        if ( $pos !== false )
    10181018                unset( $new_whitelist_options[ $option_group ][ $pos ] );
    10191019        if ( $sanitize_callback != '' )