diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php
index ca82dff71e..1c1a14a7b1 100644
a
|
b
|
class WP_Customize_Control { |
632 | 632 | ?> |
633 | 633 | </button> |
634 | 634 | <div class="new-content-item"> |
635 | | <label for="create-input-<?php echo $this->id; ?>"><span class="screen-reader-text"><?php _e( 'New page title' ); ?></span></label> |
636 | | <input type="text" id="create-input-<?php echo $this->id; ?>" class="create-item-input" placeholder="<?php esc_attr_e( 'New page title…' ); ?>"> |
| 635 | <label for="<?php echo esc_attr( 'create-input-' . $this->id ); ?>"><span class="screen-reader-text"><?php _e( 'New page title' ); ?></span></label> |
| 636 | <input type="text" id="<?php echo esc_attr( 'create-input-' . $this->id ); ?>" class="create-item-input" placeholder="<?php esc_attr_e( 'New page title…' ); ?>"> |
637 | 637 | <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button> |
638 | 638 | </div> |
639 | 639 | <?php endif; ?> |
… |
… |
class WP_Customize_Control { |
675 | 675 | */ |
676 | 676 | final public function print_template() { |
677 | 677 | ?> |
678 | | <script type="text/html" id="tmpl-customize-control-<?php echo $this->type; ?>-content"> |
| 678 | <script type="text/html" id="<?php echo esc_attr( 'tmpl-customize-control-' . $this->type . '-content' ); ?>"> |
679 | 679 | <?php $this->content_template(); ?> |
680 | 680 | </script> |
681 | 681 | <?php |
diff --git a/src/wp-includes/customize/class-wp-customize-date-time-control.php b/src/wp-includes/customize/class-wp-customize-date-time-control.php
index 607799768c..f732e6b967 100644
a
|
b
|
class WP_Customize_Date_Time_Control extends WP_Customize_Control { |
120 | 120 | <# } #> |
121 | 121 | <div class="customize-control-notifications-container"></div> |
122 | 122 | <# if ( data.description ) { #> |
123 | | <span class="description customize-control-description">{{ data.description }}</span> |
| 123 | <span class="description customize-control-description">{{{ data.description }}}</span> |
124 | 124 | <# } #> |
125 | 125 | <div class="date-time-fields {{ data.includeTime ? 'includes-time' : '' }}"> |
126 | 126 | <fieldset class="day-row"> |
diff --git a/src/wp-includes/customize/class-wp-customize-media-control.php b/src/wp-includes/customize/class-wp-customize-media-control.php
index 22bf75dad5..da4624dfd2 100644
a
|
b
|
class WP_Customize_Media_Control extends WP_Customize_Control { |
142 | 142 | var describedByAttr = data.description ? ' aria-describedby="' + descriptionId + '" ' : ''; |
143 | 143 | #> |
144 | 144 | <# if ( data.label ) { #> |
145 | | <span class="customize-control-title">{{ data.label }}</span> |
| 145 | <span class="customize-control-title">{{{ data.label }}}</span> |
146 | 146 | <# } #> |
147 | 147 | <div class="customize-control-notifications-container"></div> |
148 | 148 | <# if ( data.description ) { #> |
diff --git a/src/wp-includes/customize/class-wp-customize-nav-menu-name-control.php b/src/wp-includes/customize/class-wp-customize-nav-menu-name-control.php
index 221c4a9b03..7417560cb6 100644
a
|
b
|
class WP_Customize_Nav_Menu_Name_Control extends WP_Customize_Control { |
49 | 49 | /> |
50 | 50 | </label> |
51 | 51 | <# if ( data.description ) { #> |
52 | | <p id="{{ data.section }}-description">{{ data.description }}</p> |
| 52 | <p id="{{ data.section }}-description">{{{ data.description }}}</p> |
53 | 53 | <# } #> |
54 | 54 | <?php |
55 | 55 | } |
diff --git a/tests/qunit/index.html b/tests/qunit/index.html
index dd3fb68224..87c7f50da4 100644
a
|
b
|
|
929 | 929 | {{ data.label }} |
930 | 930 | </span> |
931 | 931 | <div class="customize-control-notifications-container"></div> |
932 | | <span class="description customize-control-description">{{ data.description }}</span> |
| 932 | <span class="description customize-control-description">{{{ data.description }}}</span> |
933 | 933 | <div class="date-time-fields"> |
934 | 934 | <fieldset class="day-row"> |
935 | 935 | <legend class="title-day">Date</legend> |