Skip to content

Commit

Permalink
pass the $args when recursing
Browse files Browse the repository at this point in the history
  • Loading branch information
douglas-johnson committed Jul 27, 2023
1 parent 6d6cc91 commit eb7012e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions co-authors-plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -1841,9 +1841,9 @@ public function filter_pre_get_avatar_data_url( $args, $id ) {
if ( has_post_thumbnail( $id ) ) {
$args['url'] = get_the_post_thumbnail_url( $id, array( $args['width'], $args['height'] ) );
} elseif ( isset( $coauthor->user_email ) ) {
$args['url'] = get_avatar_url( $coauthor->user_email );
$args['url'] = get_avatar_url( $coauthor->user_email, $args );
} else {
$args['url'] = get_avatar_url( '' ); // Fallback to default.
$args['url'] = get_avatar_url( '', $args ); // Fallback to default.
}
}
return $args;
Expand Down

0 comments on commit eb7012e

Please sign in to comment.