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:
parent
021a12edf6
commit
3ce92cfb8a
@ -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
Block a user