I18N: Remove unnecessary HTML from "Active:" strings in wp-admin/themes.php.

Follow-up to [45435].

Props ramiy.
Fixes #49243.

git-svn-id: https://develop.svn.wordpress.org/trunk@47090 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-01-20 14:25:13 +00:00
parent 5f937b4c70
commit 8738b08b2e
2 changed files with 3 additions and 9 deletions

View File

@ -342,10 +342,7 @@ foreach ( $themes as $theme ) :
<div class="theme-id-container">
<?php if ( $theme['active'] ) { ?>
<h2 class="theme-name" id="<?php echo $aria_name; ?>">
<?php
/* translators: %s: Theme name. */
printf( __( '<span>Active:</span> %s' ), $theme['name'] );
?>
<span><?php _ex( 'Active:', 'theme' ); ?></span> <?php echo $theme['name']; ?>
</h2>
<?php } else { ?>
<h2 class="theme-name" id="<?php echo $aria_name; ?>"><?php echo $theme['name']; ?></h2>
@ -509,10 +506,7 @@ if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes ) {
<div class="theme-id-container">
<# if ( data.active ) { #>
<h2 class="theme-name" id="{{ data.id }}-name">
<?php
/* translators: %s: Theme name. */
printf( __( '<span>Active:</span> %s' ), '{{{ data.name }}}' );
?>
<span><?php _ex( 'Active:', 'theme' ); ?></span> {{{ data.name }}}
</h2>
<# } else { #>
<h2 class="theme-name" id="{{ data.id }}-name">{{{ data.name }}}</h2>

View File

@ -110,7 +110,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
<# if ( data.theme.active ) { #>
<div class="theme-id-container">
<h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">
<span><?php _e( 'Previewing:' ); ?></span> {{ data.theme.name }}
<span><?php _ex( 'Previewing:', 'theme' ); ?></span> {{ data.theme.name }}
</h3>
<div class="theme-actions">
<button type="button" class="button button-primary customize-theme" aria-label="<?php echo esc_attr( $customize_label ); ?>"><?php _e( 'Customize' ); ?></button>