From ac29eb8f5a1a66e53616210d972be73b165647c2 Mon Sep 17 00:00:00 2001 From: johnregan3 Date: Fri, 22 Jul 2016 17:23:54 -0500 Subject: [PATCH] Add Select2 as a dependency for customize-posts-panel script --- php/class-customize-posts-plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/class-customize-posts-plugin.php b/php/class-customize-posts-plugin.php index bd61988..e668b71 100644 --- a/php/class-customize-posts-plugin.php +++ b/php/class-customize-posts-plugin.php @@ -199,7 +199,7 @@ public function register_scripts( WP_Scripts $wp_scripts ) { $handle = 'customize-posts-panel'; $src = plugins_url( 'js/customize-posts-panel' . $suffix, dirname( __FILE__ ) ); - $deps = array( 'customize-controls' ); + $deps = array( 'select2', 'customize-controls' ); $in_footer = 1; $wp_scripts->add( $handle, $src, $deps, $this->version, $in_footer );