mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 18:16:08 +00:00
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 ) {
|
if ( ! widgetControls.length ) {
|
||||||
|
this.container.find( '.reorder-toggle' ).hide();
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
this.container.find( '.reorder-toggle' ).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
$( widgetControls ).each( function () {
|
$( widgetControls ).each( function () {
|
||||||
|
2
wp-admin/js/customize-widgets.min.js
vendored
2
wp-admin/js/customize-widgets.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user