Make WordPress Core

Ticket #57638: 57638.patch

File 57638.patch, 695 bytes (added by chintan1896, 4 years ago)
  • wp-admin/includes/class-custom-image-header.php

    diff --git a/wp-admin/includes/class-custom-image-header.php b/wp-admin/includes/class-custom-image-header.php
    index c8809ade2f..12ac1ef9e2 100644
    a b class Custom_Image_Header {  
    332332                        if ( ! empty( $header['attachment_id'] ) ) {
    333333                                $width = ' width="230"';
    334334                        }
    335                         echo '<img src="' . set_url_scheme( $header_thumbnail ) . '" alt="' . esc_attr( $header_alt_text ) . '"' . $width . ' /></label>';
     335                        echo '<img src="' . esc_url( set_url_scheme( $header_thumbnail ) ) . '" alt="' . esc_attr( $header_alt_text ) . '"' . $width . ' /></label>';
    336336                        echo '</div>';
    337337                }
    338338