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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-20 20:37:23 +00:00
parent e511111837
commit f22f7e491d
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 != '' )