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.
Built from https://develop.svn.wordpress.org/trunk@47940


git-svn-id: http://core.svn.wordpress.org/trunk@47713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ianbelanger 2020-06-09 19:52:07 +00:00
parent ae76b79f85
commit 32116649cf
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ if ( has_post_thumbnail() && ! post_password_required() ) {
if ( $caption ) {
?>
<figcaption class="wp-caption-text"><?php echo esc_html( $caption ); ?></figcaption>
<figcaption class="wp-caption-text"><?php echo wp_kses_post( $caption ); ?></figcaption>
<?php
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-47939';
$wp_version = '5.5-alpha-47940';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.