Make WordPress Core

Ticket #60324: 60324.patch

File 60324.patch, 786 bytes (added by nareshbheda, 12 months 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 30e8c2c639..055f6cf670 100644
    a b class WP_Customize_Control { 
    553553                                <select id="<?php echo esc_attr( $input_id ); ?>" <?php echo $describedby_attr; ?> <?php $this->link(); ?>>
    554554                                        <?php
    555555                                        foreach ( $this->choices as $value => $label ) {
    556                                                 echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label . '</option>';
     556                                                echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . esc_html( $label ) . '</option>';
    557557                                        }
    558558                                        ?>
    559559                                </select>