From 2b2d91fb2647400bf0ddd2363c4d7f45d6510275 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 29 Sep 2023 15:17:51 +0200 Subject: [PATCH] Ensure proper avatar URLs in REST API --- packages/e2e-tests/src/plugins/disable-gravatar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/e2e-tests/src/plugins/disable-gravatar.php b/packages/e2e-tests/src/plugins/disable-gravatar.php index 53411a62361a..70d8cebe1615 100644 --- a/packages/e2e-tests/src/plugins/disable-gravatar.php +++ b/packages/e2e-tests/src/plugins/disable-gravatar.php @@ -44,8 +44,8 @@ static function ( $avatar, $id_or_email, $size, $default, $alt ) { add_filter( 'get_avatar_url', - static function () { - return 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='; + static function ( $url ) { + return set_url_scheme( $url, 'https' ); }, 1 );