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

git-svn-id: https://develop.svn.wordpress.org/trunk@11021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-20 20:37:23 +00:00
parent 021a12edf6
commit 3ce92cfb8a
1 changed files with 1 additions and 1 deletions

View File

@ -1022,7 +1022,7 @@ function add_option_update_handler($option_group, $option_name, $sanitize_callba
*/
function remove_option_update_handler($option_group, $option_name, $sanitize_callback = '') {
global $new_whitelist_options;
$pos = array_search( $option_name, $new_whitelist_options );
$pos = array_search( $option_name, (array) $new_whitelist_options );
if ( $pos !== false )
unset( $new_whitelist_options[ $option_group ][ $pos ] );
if ( $sanitize_callback != '' )