Skip to content

Commit

Permalink
Fix: use email to get avatar URL (#7667)
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva authored Jan 9, 2025
1 parent b8bbc02 commit 3c14973
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Donors/ListTable/Columns/DonorInformationColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function getLabel(): string
}

/**
* @unreleased Use email to get avatar URL
* @since 2.24.0
*
* @inheritDoc
Expand All @@ -56,7 +57,7 @@ public function getCellValue($model): string

return sprintf(
$template,
get_avatar_url($model->id, ['size' => 64]),
get_avatar_url($model->email, ['size' => 64]),
admin_url("edit.php?post_type=give_forms&page=give-donors&view=overview&id=$model->id"),
trim("$model->firstName $model->lastName"),
$model->email
Expand Down

0 comments on commit 3c14973

Please sign in to comment.