Skip to content

Instantly share code, notes, and snippets.

@kitchin
kitchin / foo_customizer_fix.php
Last active February 9, 2026 18:49
Theme "Flash 1.4.12" fix for Customizer script loading (WP_DEBUG on shows a Notice in error_log)
<?php
// 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.
// Note, 'iris' is a WP Core script only loaded if `is_admin()`.
// The problem is that the Notice clutters things up. It's a hassle when developing a site.
// The correct scripts do end up getting loaded if needed, despite the Notice.
// The fix is to load the scripts on the proper hooks.
@kitchin
kitchin / gist:6f534d0bc58cce1e107e
Last active August 29, 2015 14:02
Testimonial Rotator Fix 201406
<?php
/*
Plugin Name: Testimonial Rotator Fix 201406
Description: Add/remove testimonials to/from a rotator. For the plugin Testimonial Rotator, https://wordpress.org/plugins/testimonial-rotator/ See: https://wordpress.org/support/topic/fix-for-missing-testimonials-in-widget-rotator-after-203 Needs more testing, use at your own risk.
Version: 0.1
Author: kitchin
Plugin URI: https://gist.github.com/kitchin/6f534d0bc58cce1e107e
Date: 2014/06, for Wordpress 3.9.1+, Testimonial Rotator 2.0.3
License: Needs more testing, use at your own risk.
*/