Customizer: Hide the reorder-widgets button when a widget area is empty.
props celloexpressions. fixes #27787. Built from https://develop.svn.wordpress.org/trunk@31255 git-svn-id: http://core.svn.wordpress.org/trunk@31236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
81c0f75332
commit
b4bb289b5d
|
@ -1644,7 +1644,10 @@
|
|||
});
|
||||
|
||||
if ( ! widgetControls.length ) {
|
||||
this.container.find( '.reorder-toggle' ).hide();
|
||||
return;
|
||||
} else {
|
||||
this.container.find( '.reorder-toggle' ).show();
|
||||
}
|
||||
|
||||
$( widgetControls ).each( function () {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31254';
|
||||
$wp_version = '4.2-alpha-31255';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue