Skip to content

Commit

Permalink
Revert "Remove experimental flag for the Interactivity API"
Browse files Browse the repository at this point in the history
This reverts commit b8dc7dd.
  • Loading branch information
michalczaplinski committed May 24, 2023
1 parent 4800d91 commit 9124b58
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions lib/experiments-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ function gutenberg_initialize_experiments_settings() {
)
);

add_settings_field(
'gutenberg-interactivity-api-core-blocks',
__( 'Core blocks', 'gutenberg' ),
'gutenberg_display_experiment_field',
'gutenberg-experiments',
'gutenberg_experiments_section',
array(
'label' => __( 'Test the core blocks using the Interactivity API', 'gutenberg' ),
'id' => 'gutenberg-interactivity-api-core-blocks',
)
);

add_settings_field(
'gutenberg-pattern-enhancements',
__( 'Pattern enhancements', 'gutenberg' ),
Expand Down
6 changes: 4 additions & 2 deletions lib/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ function gutenberg_is_experiment_enabled( $name ) {
require __DIR__ . '/experimental/kses.php';
require __DIR__ . '/experimental/l10n.php';
require __DIR__ . '/experimental/navigation-fallback.php';
require __DIR__ . '/experimental/interactivity-api/script-loader.php';
require __DIR__ . '/experimental/interactivity-api/blocks.php';
if ( gutenberg_is_experiment_enabled( 'gutenberg-interactivity-api-core-blocks' ) ) {
require __DIR__ . '/experimental/interactivity-api/script-loader.php';
require __DIR__ . '/experimental/interactivity-api/blocks.php';
}

// Fonts API.
if ( ! class_exists( 'WP_Fonts' ) ) {
Expand Down

0 comments on commit 9124b58

Please sign in to comment.