Skip to content

Commit

Permalink
Fix: Widgets blocks does not include legacy widgets and navigation bl…
Browse files Browse the repository at this point in the history
…ocks
  • Loading branch information
jorgefilipecosta committed Aug 19, 2019
1 parent c819d0e commit adcdf42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
2 changes: 1 addition & 1 deletion lib/widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand Down

0 comments on commit adcdf42

Please sign in to comment.