From 62574145ce547c7137f506d772e63ea108e89804 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 8 Dec 2021 10:16:05 +0000 Subject: [PATCH] Coding Standards: Use camel case with a lowercase first letter for the `blockTheme` array key. This matches the WordPress JS naming conventions and the naming of other keys in the `$prepared_themes` array. Follow-up to [52341]. See #54578, #53359. Built from https://develop.svn.wordpress.org/trunk@52346 git-svn-id: http://core.svn.wordpress.org/trunk@51938 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/theme.php | 2 +- wp-admin/themes.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index d5c6a549eb..1e4828b3c1 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -782,7 +782,7 @@ function wp_prepare_themes_for_js( $themes = null ) { ? wp_nonce_url( admin_url( 'themes.php?action=' . $auto_update_action . '&stylesheet=' . $encoded_slug ), 'updates' ) : null, ), - 'block_theme' => $theme->is_block_theme(), + 'blockTheme' => $theme->is_block_theme(), ); } diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 3ef411bb6c..47aa7742b9 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -900,7 +900,7 @@ function wp_theme_auto_update_setting_template() { $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); ?> - <# if ( ! data.block_theme ) { #> + <# if ( ! data.blockTheme ) { #>