Skip to content

Commit

Permalink
fixed - phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveJonesDev committed May 22, 2024
1 parent 120ae06 commit 520413e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inc/loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,15 @@ function eqd_single_header() {
<?php endif; ?>

<?php
$featured_image_id = get_post_thumbnail_id( get_the_ID() );
$featured_image_id = get_post_thumbnail_id( get_the_ID() );
$featured_image_alt = get_post_meta( $featured_image_id, '_wp_attachment_image_alt', true );
$featured_image = get_the_post_thumbnail_url( get_the_ID() );
$featured_image = get_the_post_thumbnail_url( get_the_ID() );
if ( $featured_image ) {
?>
<?php echo '<img loading="lazy" src="' . esc_url( $featured_image ) . '" alt="' . esc_attr( $featured_image_alt ) . '" />'; ?>
<?php
} ?>
}
?>
</span>
<?php endif; ?>

Expand Down

0 comments on commit 520413e

Please sign in to comment.