diff --git a/lib/load.php b/lib/load.php index f97db4e38eb897..11c9df6c00219f 100644 --- a/lib/load.php +++ b/lib/load.php @@ -33,7 +33,9 @@ require dirname( __FILE__ ) . '/blocks.php'; require dirname( __FILE__ ) . '/client-assets.php'; require dirname( __FILE__ ) . '/demo.php'; +// experiments-page eeeds to be required before widgets, widgets-page, and customizer. +require dirname( __FILE__ ) . '/experiments-page.php'; require dirname( __FILE__ ) . '/widgets.php'; require dirname( __FILE__ ) . '/widgets-page.php'; -require dirname( __FILE__ ) . '/experiments-page.php'; + require dirname( __FILE__ ) . '/customizer.php'; diff --git a/lib/widgets.php b/lib/widgets.php index 85a9dea30ce99c..5116477a727cf9 100644 --- a/lib/widgets.php +++ b/lib/widgets.php @@ -142,7 +142,7 @@ function gutenberg_get_legacy_widget_settings() { $settings['hasPermissionsToManageWidgets'] = $has_permissions_to_manage_widgets; $settings['availableLegacyWidgets'] = $available_legacy_widgets; - return $settings; + return gutenberg_experiments_editor_settings( $settings ); } /**