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:
parent
ae76b79f85
commit
32116649cf
|
@ -29,7 +29,7 @@ if ( has_post_thumbnail() && ! post_password_required() ) {
|
||||||
if ( $caption ) {
|
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
|
<?php
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue