From db27e64064815553a6932898349c63014319ed47 Mon Sep 17 00:00:00 2001 From: Thomas Guillot Date: Thu, 16 Apr 2020 14:37:42 +0100 Subject: [PATCH] fix: change logo size to medium (#50) --- includes/class-newspack-newsletters.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-newspack-newsletters.php b/includes/class-newspack-newsletters.php index ee29753fc..35f4cdaf7 100644 --- a/includes/class-newspack-newsletters.php +++ b/includes/class-newspack-newsletters.php @@ -556,7 +556,7 @@ public static function send_campaign( $id, $post ) { public static function template_token_replacement( $content, $extra = [] ) { $sitename = get_bloginfo( 'name' ); $custom_logo_id = get_theme_mod( 'custom_logo' ); - $logo = $custom_logo_id ? wp_get_attachment_image_src( $custom_logo_id, 'thumbnail' )[0] : null; + $logo = $custom_logo_id ? wp_get_attachment_image_src( $custom_logo_id, 'medium' )[0] : null; $sitename_block = sprintf( '

%s

', @@ -564,7 +564,7 @@ public static function template_token_replacement( $content, $extra = [] ) { ); $logo_block = $logo ? sprintf( - '
%s
', + '
%s
', $custom_logo_id, $logo, $sitename,