Edit File by line
/home/barbar84/www/wp-conte.../themes/twentytw.../template...
File: featured-image.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Displays the featured image
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Twenty_Twenty
[5] Fix | Delete
* @since Twenty Twenty 1.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
if ( has_post_thumbnail() && ! post_password_required() ) {
[9] Fix | Delete
[10] Fix | Delete
$featured_media_inner_classes = '';
[11] Fix | Delete
[12] Fix | Delete
// Make the featured media thinner on archive pages.
[13] Fix | Delete
if ( ! is_singular() ) {
[14] Fix | Delete
$featured_media_inner_classes .= ' medium';
[15] Fix | Delete
}
[16] Fix | Delete
?>
[17] Fix | Delete
[18] Fix | Delete
<figure class="featured-media">
[19] Fix | Delete
[20] Fix | Delete
<div class="featured-media-inner section-inner<?php echo $featured_media_inner_classes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>">
[21] Fix | Delete
[22] Fix | Delete
<?php
[23] Fix | Delete
the_post_thumbnail();
[24] Fix | Delete
[25] Fix | Delete
$caption = get_the_post_thumbnail_caption();
[26] Fix | Delete
[27] Fix | Delete
if ( $caption ) {
[28] Fix | Delete
?>
[29] Fix | Delete
[30] Fix | Delete
<figcaption class="wp-caption-text"><?php echo wp_kses_post( $caption ); ?></figcaption>
[31] Fix | Delete
[32] Fix | Delete
<?php
[33] Fix | Delete
}
[34] Fix | Delete
?>
[35] Fix | Delete
[36] Fix | Delete
</div><!-- .featured-media-inner -->
[37] Fix | Delete
[38] Fix | Delete
</figure><!-- .featured-media -->
[39] Fix | Delete
[40] Fix | Delete
<?php
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function