Make WordPress Core

Ticket #60324: 60324.2.patch

File 60324.2.patch, 1.6 KB (added by shailu25, 16 months ago)

Updated Patch.

  • 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>
  • src/wp-includes/customize/class-wp-customize-nav-menu-location-control.php

    diff --git a/src/wp-includes/customize/class-wp-customize-nav-menu-location-control.php b/src/wp-includes/customize/class-wp-customize-nav-menu-location-control.php
    index 4877ada9e1..b0340b1eee 100644
    a b class WP_Customize_Nav_Menu_Location_Control extends WP_Customize_Control { 
    7777                        <select <?php $this->link(); ?>>
    7878                                <?php
    7979                                foreach ( $this->choices as $value => $label ) :
    80                                         echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label . '</option>';
     80                                        echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . esc_html( $label ) . '</option>';
    8181                                endforeach;
    8282                                ?>
    8383                        </select>