Make WordPress Core

Ticket #49833: 49833.diff

File 49833.diff, 652 bytes (added by pierlo, 6 years ago)
  • src/wp-content/themes/twentytwenty/template-parts/featured-image.php

    diff --git a/src/wp-content/themes/twentytwenty/template-parts/featured-image.php b/src/wp-content/themes/twentytwenty/template-parts/featured-image.php
    index 81283782df..d146e11065 100644
    a b if ( has_post_thumbnail() && ! post_password_required() ) {  
    2929                        if ( $caption ) {
    3030                                ?>
    3131
    32                                 <figcaption class="wp-caption-text"><?php echo esc_html( $caption ); ?></figcaption>
     32                                <figcaption class="wp-caption-text"><?php echo wp_kses_post( $caption ); ?></figcaption>
    3333
    3434                                <?php
    3535                        }