From 3089d4d6cca49e08f50954539cd476e71d330ca6 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Tue, 20 Jan 2015 22:44:11 +0000 Subject: [PATCH] Customizer: Hide the reorder-widgets button when a widget area is empty. props celloexpressions. fixes #27787. git-svn-id: https://develop.svn.wordpress.org/trunk@31255 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/customize-widgets.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-admin/js/customize-widgets.js b/src/wp-admin/js/customize-widgets.js index addb4d41ef..46b4ba323e 100644 --- a/src/wp-admin/js/customize-widgets.js +++ b/src/wp-admin/js/customize-widgets.js @@ -1644,7 +1644,10 @@ }); if ( ! widgetControls.length ) { + this.container.find( '.reorder-toggle' ).hide(); return; + } else { + this.container.find( '.reorder-toggle' ).show(); } $( widgetControls ).each( function () {