Title: Theme-Check: Customizer without a sanitization callback function
Last modified: August 22, 2016

---

# Theme-Check: Customizer without a sanitization callback function

 *  [Dmytro](https://wordpress.org/support/users/mfacom/)
 * (@mfacom)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/theme-check-customizer-without-a-sanitization-callback-function/)
 * I have checked this theme for errors using plugin [Theme Check](https://wordpress.org/plugins/theme-check/)
   and got the following errors:
 *     ```
       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.
       RECOMMENDED: No reference to add_theme_support( "title-tag" ) was found in the theme. It is recommended that the theme implement this functionality for WordPress 4.1 and above.
       ```
   
 * The latter is probably not crucial, but it would be nice to be corrected as well.
   But I am more worried about the error marked REQUIRED.
    Could someone figure 
   out hot to correct this?

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

 *  Thread Starter [Dmytro](https://wordpress.org/support/users/mfacom/)
 * (@mfacom)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/theme-check-customizer-without-a-sanitization-callback-function/#post-5785116)
 * I fixed the tile-tag problem which was marked by RECOMMENDED.
    The solution for
   tile-tag is described [here](https://make.wordpress.org/core/2014/10/29/title-tags-in-4-1/)
   But the error related to a sanitization callback function is still present.
 *  Theme Author [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * (@crondeau)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/theme-check-customizer-without-a-sanitization-callback-function/#post-5785200)
 * Thanks for the heads up on this. I’m currently really busy and may not have time
   to get around to updating the theme. I’ll try to get to this as soon as I can.

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

The topic ‘Theme-Check: Customizer without a sanitization callback function’ is 
closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/water-lily/1.4/screenshot.jpg)
 * Water Lily
 * [Support Threads](https://wordpress.org/support/theme/water-lily/)
 * [Active Topics](https://wordpress.org/support/theme/water-lily/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/water-lily/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/water-lily/reviews/)

## Tags

 * [add_setting](https://wordpress.org/support/topic-tag/add_setting/)
 * [sanitization](https://wordpress.org/support/topic-tag/sanitization/)

 * 2 replies
 * 2 participants
 * Last reply from: [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/theme-check-customizer-without-a-sanitization-callback-function/#post-5785200)
 * Status: not resolved