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
This commit is contained in:
parent
5fdc8a8364
commit
3089d4d6cc
@ -1644,7 +1644,10 @@
|
||||
});
|
||||
|
||||
if ( ! widgetControls.length ) {
|
||||
this.container.find( '.reorder-toggle' ).hide();
|
||||
return;
|
||||
} else {
|
||||
this.container.find( '.reorder-toggle' ).show();
|
||||
}
|
||||
|
||||
$( widgetControls ).each( function () {
|
||||
|
Loading…
Reference in New Issue
Block a user