Make WordPress Core

Changeset 33327


Ignore:
Timestamp:
07/20/2015 01:45:08 AM (10 years ago)
Author:
dd32
Message:

Allow HTML/entities in the Active Theme Name in the themes.php & Customizer templates.

Props iCaleb
Fixes #33036

Location:
trunk/src
Files:
2 edited

Legend:

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

    r33067 r33327  
    332332            <?php
    333333            /* translators: %s: theme name */
    334             printf( __( '<span>Active:</span> %s' ), '{{ data.name }}' );
     334            printf( __( '<span>Active:</span> %s' ), '{{{ data.name }}}' );
    335335            ?>
    336336        </h3>
  • trunk/src/wp-includes/class-wp-customize-control.php

    r33317 r33327  
    14201420                    <?php
    14211421                    /* translators: %s: theme name */
    1422                     printf( __( '<span>Active:</span> %s' ), '{{ data.theme.name }}' );
     1422                    printf( __( '<span>Active:</span> %s' ), '{{{ data.theme.name }}}' );
    14231423                    ?>
    14241424                </h3>
    14251425            <# } else { #>
    1426                 <h3 class="theme-name" id="{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
     1426                <h3 class="theme-name" id="{{ data.theme.id }}-name">{{{ data.theme.name }}}</h3>
    14271427                <div class="theme-actions">
    14281428                    <button type="button" class="button theme-details"><?php _e( 'Theme Details' ); ?></button>
Note: See TracChangeset for help on using the changeset viewer.