WordPress.org

Make WordPress Core

Changeset 11021


Ignore:
Timestamp:
04/20/2009 08:37:23 PM (11 years ago)
Author:
ryan
Message:

Cast to array to avoid warning. Props Denis-de-Bernardy, pamelatech. fixes #9116

File:
1 edited

Legend:

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

    r11005 r11021  
    10231023function remove_option_update_handler($option_group, $option_name, $sanitize_callback = '') {
    10241024    global $new_whitelist_options;
    1025     $pos = array_search( $option_name, $new_whitelist_options );
     1025    $pos = array_search( $option_name, (array) $new_whitelist_options );
    10261026    if ( $pos !== false )
    10271027        unset( $new_whitelist_options[ $option_group ][ $pos ] );
Note: See TracChangeset for help on using the changeset viewer.