sanitization callback problem
-
Maybe someone can shed some light on a recent issue I’m having –
I keep getting:
REQUIRED: Found a Customizer setting that did not have a sanitization callback function. Every call to the add_setting() method needs to have a sanitization callback function passed.
…even despite the fact that I do have sanitization callbacks specified for all settings. However, the problem seems to be that I’m passing an array to add_setting(). For example:
$wp_customize->add_setting( $theme_slug_setting[‘id’], $theme_slug_setting[‘args’] );
If I replace $theme_slug_setting[‘args’] with the array itself written out, Theme Check passes as expected. Is there some reason I have to explicitly write out the array for add_setting()?
Thanks!
The topic ‘sanitization callback problem’ is closed to new replies.