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
This commit is contained in:
parent
128b5b8491
commit
3b0920dd37
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user