mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
Widget Customizer: Fix 'WidgetCustomizerPreview' is undefined error in IE8/9.
* Move `WidgetCustomizerPreview` to `wp.customize.WidgetCustomizerPreview` * Move `WidgetCustomizerPreview_exports` to export_preview_data() * Use `_wpWidgetCustomizerPreviewSettings` to transfer settings to `wp.customize.WidgetCustomizerPreview` see #27485. git-svn-id: https://develop.svn.wordpress.org/trunk@27653 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1510,7 +1510,7 @@ var WidgetCustomizer = ( function ($) {
|
||||
*/
|
||||
getPreviewWidgetElement: function () {
|
||||
var control = this,
|
||||
widget_customizer_preview = self.getPreviewWindow().WidgetCustomizerPreview;
|
||||
widget_customizer_preview = self.getPreviewWindow().wp.customize.WidgetCustomizerPreview;
|
||||
return widget_customizer_preview.getWidgetElement( control.params.widget_id );
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user