Make WordPress Core

Ticket #54295: 54295.diff

File 54295.diff, 4.2 KB (added by sabbirshouvo, 3 years ago)
  • src/wp-includes/class-wp-customize-control.php

    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 { 
    632632                                                ?>
    633633                                        </button>
    634634                                        <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&hellip;' ); ?>">
     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&hellip;' ); ?>">
    637637                                                <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button>
    638638                                        </div>
    639639                                <?php endif; ?>
    class WP_Customize_Control { 
    675675         */
    676676        final public function print_template() {
    677677                ?>
    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' ); ?>">
    679679                        <?php $this->content_template(); ?>
    680680                </script>
    681681                <?php
  • src/wp-includes/customize/class-wp-customize-date-time-control.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 { 
    120120                <# } #>
    121121                <div class="customize-control-notifications-container"></div>
    122122                <# if ( data.description ) { #>
    123                         <span class="description customize-control-description">{{ data.description }}</span>
     123                        <span class="description customize-control-description">{{{ data.description }}}</span>
    124124                <# } #>
    125125                <div class="date-time-fields {{ data.includeTime ? 'includes-time' : '' }}">
    126126                        <fieldset class="day-row">
  • src/wp-includes/customize/class-wp-customize-media-control.php

    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 { 
    142142                var describedByAttr = data.description ? ' aria-describedby="' + descriptionId + '" ' : '';
    143143                #>
    144144                <# if ( data.label ) { #>
    145                         <span class="customize-control-title">{{ data.label }}</span>
     145                        <span class="customize-control-title">{{{ data.label }}}</span>
    146146                <# } #>
    147147                <div class="customize-control-notifications-container"></div>
    148148                <# if ( data.description ) { #>
  • src/wp-includes/customize/class-wp-customize-nav-menu-name-control.php

    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 { 
    4949                                />
    5050                </label>
    5151                <# if ( data.description ) { #>
    52                         <p id="{{ data.section }}-description">{{ data.description }}</p>
     52                        <p id="{{ data.section }}-description">{{{ data.description }}}</p>
    5353                <# } #>
    5454                <?php
    5555        }
  • tests/qunit/index.html

    diff --git a/tests/qunit/index.html b/tests/qunit/index.html
    index dd3fb68224..87c7f50da4 100644
    a b  
    929929                        {{ data.label }}
    930930                </span>
    931931                <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>
    933933                <div class="date-time-fields">
    934934                        <fieldset class="day-row">
    935935                                <legend class="title-day">Date</legend>