Avatar shows the default
-
The latest version of the plugin shows the default avatar.
I fixed it by this code:
$writeList .= (esc_url( get_avatar_url( $k->comment_author_email ) )) ? '<img class="tcwGravatar '.$k->comment_author_email.'" alt ="'.$k->comment_author.'" title="'.$k->comment_author.'" src="'.esc_url( get_avatar_url( $k->comment_author_email ) ).'" style="width: 20px; height: auto; padding-right: 10px;" />' : '<img class="tcwGravatar" src="https://www.gravatar.com/avatar/'.$image.'?size='.$avatarSize.'&default='.$defavatar.'" alt ="'.$k->comment_author.'" title="'.$k->comment_author.'" /> ';
at below this code:
$defavatar=urlencode($defaultGravatar);
I hope it helpful for someone.
The page I need help with: [log in to see the link]
- The topic ‘Avatar shows the default’ is closed to new replies.