Customizer: If there's only one available sidebar, hide the move-widget button.

props celloexpressions.
fixes #30690.
Built from https://develop.svn.wordpress.org/trunk@31252


git-svn-id: http://core.svn.wordpress.org/trunk@31233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-01-20 20:36:21 +00:00
parent 9059dc8e88
commit 0c0675627b
3 changed files with 8 additions and 2 deletions

View File

@ -641,6 +641,12 @@
selectSidebarItem( selfSidebarItem );
}
} );
if ( 1 === $sidebarItems.length ) {
self.container.find( '.move-widget' ).hide();
} else {
self.container.find( '.move-widget' ).show();
}
};
updateAvailableSidebars();

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31251';
$wp_version = '4.2-alpha-31252';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.