Skip to content

Commit

Permalink
fix: use email to get avatar URL
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Jan 6, 2025
1 parent 38bb1f5 commit a18a446
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 a18a446

Please sign in to comment.