Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Aug 26, 2021
1 parent ad985fc commit 4ff3411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loop-blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
$author_id = $coauthor[0]->data->ID;

$author_email = esc_attr( get_the_author_meta( 'email', $author_id ) );
$profile_img_url = esc_attr( get_avatar_url( $author_email, array('size' => 22 ) ) );
$profile_img_url = esc_attr( get_avatar_url( $author_email, array( 'size' => 22 ) ) );

if ( class_exists( 'Moment\Moment' ) ){
$m = new \Moment\Moment($post_date);
$post_date_ago = $m->fromNow()->getRelative();
echo " <span class='post-thumbnail-date'><img width="22" height="22" loading="lazy" class="lazy-load u-photo rounded-circle mr-2" src="$profile_img_url" data-src="$profile_img_url"> $post_author | $post_date_ago</span>";
echo " <span class='post-thumbnail-date'><img width=\"22\" height=\"22\" loading=\"lazy\" class=\"lazy-load u-photo rounded-circle mr-2\" src=\"$profile_img_url\" data-src=\"$profile_img_url\"> $post_author | $post_date_ago</span>";
}
?>
</p>
Expand Down

0 comments on commit 4ff3411

Please sign in to comment.