--- a/wp/wp-includes/customize/class-wp-customize-theme-control.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/customize/class-wp-customize-theme-control.php Fri Sep 05 18:40:08 2025 +0200
@@ -240,7 +240,15 @@
<button type="button" class="button button-primary customize-theme" aria-label="<?php echo esc_attr( $customize_label ); ?>"><?php _e( 'Customize' ); ?></button>
</div>
</div>
- <div class="notice notice-success notice-alt"><p><?php _ex( 'Installed', 'theme' ); ?></p></div>
+ <?php
+ wp_admin_notice(
+ _x( 'Installed', 'theme' ),
+ array(
+ 'type' => 'success',
+ 'additional_classes' => array( 'notice-alt' ),
+ )
+ );
+ ?>
<# } else if ( 'installed' === data.theme.type ) { #>
<# if ( data.theme.blockTheme ) { #>
<div class="theme-id-container">
@@ -255,21 +263,26 @@
<# } #>
</div>
</div>
- <div class="notice notice-error notice-alt"><p>
- <?php
- _e( 'This theme doesn\'t support Customizer.' );
- ?>
+ <?php $customizer_not_supported_message = __( 'This theme doesn\'t support Customizer.' ); ?>
<# if ( data.theme.actions.activate ) { #>
<?php
- echo ' ';
- printf(
+ $customizer_not_supported_message .= ' ' . sprintf(
/* translators: %s: URL to the themes page (also it activates the theme). */
__( 'However, you can still <a href="%s">activate this theme</a>, and use the Site Editor to customize it.' ),
'{{{ data.theme.actions.activate }}}'
);
?>
<# } #>
- </p></div>
+
+ <?php
+ wp_admin_notice(
+ $customizer_not_supported_message,
+ array(
+ 'type' => 'error',
+ 'additional_classes' => array( 'notice-alt' ),
+ )
+ );
+ ?>
<# } else { #>
<div class="theme-id-container">
<h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
@@ -281,7 +294,15 @@
<# } #>
</div>
</div>
- <div class="notice notice-success notice-alt"><p><?php _ex( 'Installed', 'theme' ); ?></p></div>
+ <?php
+ wp_admin_notice(
+ _x( 'Installed', 'theme' ),
+ array(
+ 'type' => 'success',
+ 'additional_classes' => array( 'notice-alt' ),
+ )
+ );
+ ?>
<# } #>
<# } else { #>
<div class="theme-id-container">