Make WordPress Core

Changeset 52346


Ignore:
Timestamp:
12/08/2021 10:14:52 AM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme.php

    r52341 r52346  
    783783                    : null,
    784784            ),
    785             'block_theme'    => $theme->is_block_theme(),
     785            'blockTheme'     => $theme->is_block_theme(),
    786786        );
    787787    }
  • trunk/src/wp-admin/themes.php

    r52341 r52346  
    901901                    ?>
    902902                    <a class="button activate" href="{{{ data.actions.activate }}}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
    903                     <# if ( ! data.block_theme ) { #>
     903                    <# if ( ! data.blockTheme ) { #>
    904904                        <?php
    905905                        /* translators: %s: Theme name. */
Note: See TracChangeset for help on using the changeset viewer.