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:
parent
e511111837
commit
f22f7e491d
|
@ -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 != '' )
|
||||
|
|
Loading…
Reference in New Issue