From 84dc68a77f1811b1056ba8aada7ab862c1ac0b2b Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Fri, 4 Oct 2019 21:58:48 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@46389 602fd350-edb4-49c9-b593-d223f7449a82 --- .../customize/class-wp-customize-site-icon-control.php | 2 +- src/wp-includes/media-template.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/customize/class-wp-customize-site-icon-control.php b/src/wp-includes/customize/class-wp-customize-site-icon-control.php index bb4681ef62..b4edfb9da1 100644 --- a/src/wp-includes/customize/class-wp-customize-site-icon-control.php +++ b/src/wp-includes/customize/class-wp-customize-site-icon-control.php @@ -64,7 +64,7 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
<?php esc_attr_e( 'Preview as a browser icon' ); ?>
- + <?php esc_attr_e( 'Preview as an app icon' ); ?> diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php index ddac75d5e0..80d0bafbe4 100644 --- a/src/wp-includes/media-template.php +++ b/src/wp-includes/media-template.php @@ -1431,7 +1431,7 @@ function wp_print_media_templates() {
<?php esc_attr_e( 'Preview as a browser icon' ); ?>
- +