Skip to content

Commit

Permalink
Rename gutenberg-dataviews to gutenberg-custom-dataviews
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Apr 17, 2024
1 parent d69f5b0 commit 952c7c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/experimental/data-views.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion lib/experimental/editor-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down
4 changes: 2 additions & 2 deletions lib/experiments-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
);

Expand Down

0 comments on commit 952c7c1

Please sign in to comment.