Skip to content

Commit

Permalink
Update render.php
Browse files Browse the repository at this point in the history
  • Loading branch information
janboddez committed Sep 10, 2024
1 parent 2669e95 commit 9ef0de9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blocks/facepile-content/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@

if ( empty( $avatar ) ) {
continue;

// So, normally, WordPress would return a "Mystery Man" or whatever avatar, if there was none. Still, could
// be it doesn't in case there's no author email address.
// $avatar = '<img loading="lazy" decoding="async" src="' . plugins_url( '/assets/mm.png', dirname( __DIR__ ) ) . '" width="40" height="40" class="avatar avatar-40 photo">';
}

$processor = new \WP_HTML_Tag_Processor( $avatar );
Expand Down

0 comments on commit 9ef0de9

Please sign in to comment.