Customize: Prevent wide widgets from being displayed as wide when Customizer is displayed in mobile breakpoint.

Fixes #41624.

Built from https://develop.svn.wordpress.org/trunk@41247


git-svn-id: http://core.svn.wordpress.org/trunk@41087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-08-13 05:55:43 +00:00
parent a5d3688157
commit e956aa4176
3 changed files with 3 additions and 3 deletions

View File

@ -593,7 +593,7 @@
var self = this, $widgetInside, $widgetForm, $customizeSidebar,
$themeControlsContainer, positionWidget;
if ( ! this.params.is_wide ) {
if ( ! this.params.is_wide || $( window ).width() <= 640 /* max-width breakpoint in customize-controls.css */ ) {
return;
}

File diff suppressed because one or more lines are too long

View File

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