Make WordPress Core

Changeset 47940


Ignore:
Timestamp:
06/09/2020 07:50:26 PM (6 years ago)
Author:
ianbelanger
Message:

Bundled Themes: Twenty Twenty HTML in featured image caption is being escaped.

Fixes the issue by replacing esc_html with wp_kses_post in the caption in featured images.

Props pierlo, JavierCasares, audrasjb.
Fixes #49833.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/template-parts/featured-image.php

    r47122 r47940  
    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
Note: See TracChangeset for help on using the changeset viewer.