Skip to content

Commit 3e9ff1e

Browse files
committed
Remove experimental setting
1 parent 9df8f9a commit 3e9ff1e

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

lib/experimental/commands.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,11 @@ function gutenberg_enqueue_command_palette_assets() {
2424
return;
2525
}
2626

27-
$gutenberg_experiments = get_option( 'gutenberg-experiments' );
28-
if ( empty( $gutenberg_experiments ) || ! array_key_exists( 'gutenberg-command-palette-everywhere', $gutenberg_experiments ) ) {
29-
return;
30-
}
31-
3227
wp_enqueue_script( 'wp-commands' );
3328
wp_enqueue_style( 'wp-commands' );
3429
wp_enqueue_script( 'wp-core-commands' );
3530

36-
$inline_script = <<<JS
37-
window.__experimentalEnableCommandPaletteEverywhere = true;
38-
wp.coreCommands.initializeCommandPalette();
39-
JS;
31+
$inline_script = 'wp.coreCommands.initializeCommandPalette();';
4032

4133
wp_add_inline_script( 'wp-core-commands', $inline_script );
4234
}

packages/core-commands/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function CommandPalette() {
3131
* unless the experimental setting is enabled.
3232
*/
3333
export function initializeCommandPalette() {
34-
if ( ! window.__experimentalEnableCommandPaletteEverywhere ) {
34+
if ( ! globalThis.IS_GUTENBERG_PLUGIN ) {
3535
return;
3636
}
3737
const root = document.createElement( 'div' );

0 commit comments

Comments
 (0)