From a20bfcd6b1150674eb0b960b41bfe5bce7a434f9 Mon Sep 17 00:00:00 2001 From: koopersmith Date: Fri, 20 Apr 2012 02:39:55 +0000 Subject: [PATCH] Theme Customizer: Improve image picker control. see #19910. Overhauled image pickers: * Add support for drag and drop uploads to image controls. * Improve the 'uploaded' tab in image controls: automatically add images uploaded during the current session, hide the tab when no uploaded images exist. * Move the header image control to the WP_Customize_Header_Image_Control class. Remove wp_customize_print_uploaded_headers() and wp_customize_print_uploaded_headers() functions. * Abstract the dropdown functionality from the color picker to the .dropdown class. * In wp.Uploader, unset element keys if passed an empty jQuery collection. git-svn-id: http://svn.automattic.com/wordpress/trunk@20545 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-control.php | 116 ++++++++++--- wp-includes/class-wp-customize.php | 33 +--- wp-includes/css/customize-controls.dev.css | 182 +++++++++++---------- wp-includes/js/customize-controls.dev.js | 102 ++++++++---- wp-includes/js/plupload/wp-plupload.dev.js | 6 + 5 files changed, 268 insertions(+), 171 deletions(-) diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index c6b18fd496..b3d7c97d61 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/wp-includes/class-wp-customize-control.php @@ -180,10 +180,10 @@ class WP_Customize_Control { ?>