Title: Customizer WP_DEBUG notices (script loading)
Last modified: February 9, 2026

---

# Customizer WP_DEBUG notices (script loading)

 *  [kitchin](https://wordpress.org/support/users/kitchin/)
 * (@kitchin)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/customizer-wp_debug-notices-script-loading/)
 * Ver. 1.4.12
 * The Customizer in Dashboard triggers Notices (written to `error_log` if enabled):
 * `PHP Notice: Function WP_Scripts::add was called incorrectly. The script with
   the handle "flash-color-scheme-control" was enqueued with dependencies that are
   not registered: iris.`
 * The problem is in `flash/inc/customizer.php`. The function `flash_customize_preview_scripts()`
   handles two hooks:
   ‘customize_controls_enqueue_scripts’‘customize_preview_init’
 * It should be split into two functions.
 * The first hook runs with `is_admin() = true`, and the dependency “iris”, a core
   script, is available to `wp_enqueue_script()`.
 * The second hook runs with `is_admin() = false`, because it is simulating a front
   end render. The dependency “iris” is not loaded, because it’s admin only.
 * Here is a fix, probably right: [https://gist.github.com/kitchin/17948e5fb30aee118018d73f2d132d27](https://gist.github.com/kitchin/17948e5fb30aee118018d73f2d132d27)
    -  This topic was modified 2 months, 1 week ago by [kitchin](https://wordpress.org/support/users/kitchin/).

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustomizer-wp_debug-notices-script-loading%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/flash/1.4.12/screenshot.jpg)
 * Flash
 * [Support Threads](https://wordpress.org/support/theme/flash/)
 * [Active Topics](https://wordpress.org/support/theme/flash/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/flash/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/flash/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [kitchin](https://wordpress.org/support/users/kitchin/)
 * Last activity: [2 months, 1 week ago](https://wordpress.org/support/topic/customizer-wp_debug-notices-script-loading/)
 * Status: not resolved