WordPress.org

Make WordPress Core

Ticket #31776: 31776.1.diff

File 31776.1.diff, 2.4 KB (added by obenland, 5 years ago)

Optional: Use a placeholder to be able to reorder words.

  • src/wp-admin/themes.php

     
    222222        <div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div>
    223223
    224224        <?php if ( $theme['active'] ) { ?>
    225                 <h3 class="theme-name" id="<?php echo $aria_name; ?>"><span><?php _ex( 'Active:', 'theme' ); ?></span> <?php echo $theme['name']; ?></h3>
     225                <h3 class="theme-name" id="<?php echo $aria_name; ?>"><?php printf( _x( '<span>Active:</span> %s', '%s: theme name' ), $theme['name'] ); ?></h3>
    226226        <?php } else { ?>
    227227                <h3 class="theme-name" id="<?php echo $aria_name; ?>"><?php echo $theme['name']; ?></h3>
    228228        <?php } ?>
     
    319319        <div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div>
    320320
    321321        <# if ( data.active ) { #>
    322                 <h3 class="theme-name" id="{{ data.id }}-name"><span><?php _ex( 'Active:', 'theme' ); ?></span> {{{ data.name }}}</h3>
     322                <h3 class="theme-name" id="{{ data.id }}-name"><?php printf( _x( '<span>Active:</span> %s', '%s: theme name' ), '{{ data.name }}' ); ?></h3>
    323323        <# } else { #>
    324324                <h3 class="theme-name" id="{{ data.id }}-name">{{{ data.name }}}</h3>
    325325        <# } #>
  • src/wp-includes/class-wp-customize-control.php

     
    12131213                        <div class="theme-author"><?php printf( __( 'By %s' ), '{{ data.theme.author }}' ); ?></div>
    12141214
    12151215                        <# if ( data.theme.active ) { #>
    1216                                 <h3 class="theme-name" id="{{ data.theme.id }}-name"><span><?php _ex( 'Previewing:', 'theme' ); ?></span> {{ data.theme.name }}</h3>
     1216                                <h3 class="theme-name" id="{{ data.theme.id }}-name"><?php printf( _x( '<span>Previewing:</span> %s', '%s: theme name' ), '{{ data.theme.name }}' ); ?></h3>
    12171217                        <# } else { #>
    12181218                                <h3 class="theme-name" id="{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
    12191219                        <# } #>
     
    12861286
    12871287                <span class="reorder-toggle" tabindex="0">
    12881288                        <span class="reorder"><?php _ex( 'Reorder', 'Reorder widgets in Customizer' ); ?></span>
    1289                         <span class="reorder-done"><?php _ex( 'Done', 'Cancel reordering widgets in Customizer'  ); ?></span>
     1289                        <span class="reorder-done"><?php _ex( 'Done', 'Cancel reordering widgets in Customizer' ); ?></span>
    12901290                </span>
    12911291                <?php
    12921292        }