From 092d648b8a504090d5c491322a821007dccc081b Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Wed, 25 Apr 2012 21:03:29 +0000 Subject: [PATCH] Theme Customizer: Add statuses to the color and image controls. see #19910. Move the color control from the switch statement to WP_Customize_Color_Control. Markup improvements. git-svn-id: https://develop.svn.wordpress.org/trunk@20598 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-wp-customize-control.php | 114 +++++++++++++-------- wp-includes/class-wp-customize.php | 14 +-- wp-includes/css/customize-controls.dev.css | 47 +++++++-- wp-includes/js/customize-controls.dev.js | 28 ++++- wp-includes/js/customize-preview.dev.js | 2 +- 5 files changed, 140 insertions(+), 65 deletions(-) diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index b3d7c97d61..6e1452174e 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/wp-includes/class-wp-customize-control.php @@ -64,14 +64,7 @@ class WP_Customize_Control { * * @since 3.4.0 */ - public function enqueue() { - switch( $this->type ) { - case 'color': - wp_enqueue_script( 'farbtastic' ); - wp_enqueue_style( 'farbtastic' ); - break; - } - } + public function enqueue() {} /** @@ -176,27 +169,11 @@ class WP_Customize_Control { - -