From c6ae8b8e5183ea7a9bcd304784d6dc1f4ba3ed1d Mon Sep 17 00:00:00 2001 From: koopersmith Date: Thu, 22 Mar 2012 07:30:44 +0000 Subject: [PATCH] Theme Customizer: Only show uploader 'remove' links when there is an image to remove. see #19910. git-svn-id: http://svn.automattic.com/wordpress/trunk@20261 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-setting.php | 4 +++- wp-includes/js/customize-controls.dev.js | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-setting.php b/wp-includes/class-wp-customize-setting.php index 09c8f934be..b52ec981ae 100644 --- a/wp-includes/class-wp-customize-setting.php +++ b/wp-includes/class-wp-customize-setting.php @@ -398,13 +398,15 @@ class WP_Customize_Setting { value(); + $style = empty( $value ) ? 'style="display:none;"' : ''; ?>