From 952c7c1aba481536fc43a11c9123ca12a229aebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:06:58 +0200 Subject: [PATCH] Rename gutenberg-dataviews to gutenberg-custom-dataviews --- lib/experimental/data-views.php | 2 +- lib/experimental/editor-settings.php | 2 +- lib/experiments-page.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/experimental/data-views.php b/lib/experimental/data-views.php index e9fb2134f3b39c..a5c350a18b0ca5 100644 --- a/lib/experimental/data-views.php +++ b/lib/experimental/data-views.php @@ -10,7 +10,7 @@ */ function _gutenberg_register_data_views_post_type() { $gutenberg_experiments = get_option( 'gutenberg-experiments' ); - if ( empty( $gutenberg_experiments ) || ! array_key_exists( 'gutenberg-dataviews', $gutenberg_experiments ) ) { + if ( empty( $gutenberg_experiments ) || ! array_key_exists( 'gutenberg-custom-dataviews', $gutenberg_experiments ) ) { return; } register_post_type( diff --git a/lib/experimental/editor-settings.php b/lib/experimental/editor-settings.php index 803b59021bcd7e..b15260d1f3e3f0 100644 --- a/lib/experimental/editor-settings.php +++ b/lib/experimental/editor-settings.php @@ -16,7 +16,7 @@ function gutenberg_enable_experiments() { if ( $gutenberg_experiments && array_key_exists( 'gutenberg-zoomed-out-view', $gutenberg_experiments ) ) { wp_add_inline_script( 'wp-block-editor', 'window.__experimentalEnableZoomedOutView = true', 'before' ); } - if ( $gutenberg_experiments && array_key_exists( 'gutenberg-dataviews', $gutenberg_experiments ) ) { + if ( $gutenberg_experiments && array_key_exists( 'gutenberg-custom-dataviews', $gutenberg_experiments ) ) { wp_add_inline_script( 'wp-block-editor', 'window.__experimentalCustomViews = true', 'before' ); } if ( $gutenberg_experiments && array_key_exists( 'gutenberg-color-randomizer', $gutenberg_experiments ) ) { diff --git a/lib/experiments-page.php b/lib/experiments-page.php index 08bfc283dac2e2..11861f57d54e41 100644 --- a/lib/experiments-page.php +++ b/lib/experiments-page.php @@ -68,14 +68,14 @@ function gutenberg_initialize_experiments_settings() { ); add_settings_field( - 'gutenberg-dataviews', + 'gutenberg-custom-dataviews', __( 'New admin views', 'gutenberg' ), 'gutenberg_display_experiment_field', 'gutenberg-experiments', 'gutenberg_experiments_section', array( 'label' => __( 'Test the new views for different entities like pages.', 'gutenberg' ), - 'id' => 'gutenberg-dataviews', + 'id' => 'gutenberg-custom-dataviews', ) );