diff --git a/newspack-sacha/template-parts/post/author-bio.php b/newspack-sacha/template-parts/post/author-bio.php index 406011f02..108c5eaa7 100644 --- a/newspack-sacha/template-parts/post/author-bio.php +++ b/newspack-sacha/template-parts/post/author-bio.php @@ -11,6 +11,8 @@ } $author_bio_length = get_theme_mod( 'author_bio_length', 200 ); +// Shared avatar image size for author archive + author bio templates. +$author_avatar_size = get_theme_mod( 'author_avatar_size', 120 ); if ( function_exists( 'coauthors_posts_links' ) && is_single() && ! empty( get_coauthors() ) ) : // phpcs:ignore PHPCompatibility.LanguageConstructs.NewEmptyNonVariable.Found @@ -20,7 +22,7 @@ if ( '' !== $author->description ) { // avatar_img_tag is a property added by Newspack Network plugin to distributed posts. - $author_avatar = $author->avatar_img_tag ?? coauthors_get_avatar( $author, 80 ); + $author_avatar = $author->avatar_img_tag ?? coauthors_get_avatar( $author, absint( $author_avatar_size ) ); $author_url = get_author_posts_url( $author->ID, $author->user_nicename ); /** @@ -109,7 +111,7 @@