From 8730110d4fced42eac9d00effafc418ef0ee56c3 Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Mon, 8 Jul 2024 16:58:49 +0100 Subject: [PATCH] Include alt text --- .../edit-site/src/components/page-templates/author-field.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/page-templates/author-field.js b/packages/edit-site/src/components/page-templates/author-field.js index 082a70301ed52c..039f0f61b2b22f 100644 --- a/packages/edit-site/src/components/page-templates/author-field.js +++ b/packages/edit-site/src/components/page-templates/author-field.js @@ -10,6 +10,8 @@ import { useState } from '@wordpress/element'; import { commentAuthorAvatar as authorIcon } from '@wordpress/icons'; import { useSelect } from '@wordpress/data'; import { store as coreStore } from '@wordpress/core-data'; +import { __ } from '@wordpress/i18n'; + /** * Internal dependencies */ @@ -30,7 +32,7 @@ function BaseAuthorField( { viewType, text, icon, imageUrl } ) { > setIsImageLoaded( true ) } - alt="" + alt={ __( 'Author avatar' ) } src={ imageUrl } />