Title: Customizer Problem
Last modified: August 22, 2016

---

# Customizer Problem

 *  Resolved [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/customizer-problem/)
 * I’ve switched my new theme to the Customize Options system and theme check is
   giving me the following error.
 * “REQUIRED: Found a Customizer setting that had an empty value passed as sanitization
   callback. You need to pass a function name as sanitization callback.”
 * All my “sanitize_callback”‘s are not empty but the “sanitize_js_callback”‘s are
   empty. When I put in sanitize_js_callback => ‘k’, the theme passes.
 * What gives?
 * Kevin
 * [https://wordpress.org/plugins/theme-check/](https://wordpress.org/plugins/theme-check/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 6 months ago](https://wordpress.org/support/topic/customizer-problem/#post-5529969)
 * Hard to say without seeing the code, but it should be checking for both, as an
   either/or situation. If you have a sanitize_callback then it doesn’t need a sanitize_js_callback
   too.
 *  Thread Starter [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/customizer-problem/#post-5529979)
 * Here is the pastebin link….thanks for the help.
 * [Link](http://pastebin.com/QBf20ahd)
 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 6 months ago](https://wordpress.org/support/topic/customizer-problem/#post-5530006)
 * Try removing the blank sanitize_js_callback lines. If it’s the same as the default,
   you don’t need to specify it. 🙂
 *  Thread Starter [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/customizer-problem/#post-5530010)
 * Yep….that worked…thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Customizer Problem’ is closed to new replies.

 * ![](https://ps.w.org/theme-check/assets/icon-128x128.png?rev=972579)
 * [Theme Check](https://wordpress.org/plugins/theme-check/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-check/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-check/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-check/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-check/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-check/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/customizer-problem/#post-5530010)
 * Status: resolved