From 3b0920dd378b51cdaf54c357ea7294c45adc1cd1 Mon Sep 17 00:00:00 2001 From: Ian Belanger Date: Tue, 9 Jun 2020 19:50:26 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@47940 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentytwenty/template-parts/featured-image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/src/wp-content/themes/twentytwenty/template-parts/featured-image.php +++ b/src/wp-content/themes/twentytwenty/template-parts/featured-image.php @@ -29,7 +29,7 @@ if ( has_post_thumbnail() && ! post_password_required() ) { if ( $caption ) { ?> -
+