WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/04/2019 09:58:48 PM (5 weeks ago)
Author:
ocean90
Message:

Customize: Prevent breaking the customizer when site title contains templating syntax.

When the site title is inside an underscore template, syntax defined in wp.template like {{ }} is treated as special characters and will make Underscore treat it as data to be compiled/rendered.

Props pierlo, donmhico.
Fixes #46863.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r46375 r46389  
    14321432                <img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
    14331433            </div>
    1434             <span class="browser-title" aria-hidden="true"><?php bloginfo( 'name' ); ?></span>
     1434            <span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
    14351435        </div>
    14361436
Note: See TracChangeset for help on using the changeset viewer.