mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user