mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Customizer: If there's only one available sidebar, hide the move-widget button.
props celloexpressions. fixes #30690. git-svn-id: https://develop.svn.wordpress.org/trunk@31252 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -641,6 +641,12 @@
|
||||
selectSidebarItem( selfSidebarItem );
|
||||
}
|
||||
} );
|
||||
|
||||
if ( 1 === $sidebarItems.length ) {
|
||||
self.container.find( '.move-widget' ).hide();
|
||||
} else {
|
||||
self.container.find( '.move-widget' ).show();
|
||||
}
|
||||
};
|
||||
|
||||
updateAvailableSidebars();
|
||||
|
||||
Reference in New Issue
Block a user