Skip to content

Commit

Permalink
Include alt text
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Jul 8, 2024
1 parent 2466964 commit 8730110
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -30,7 +32,7 @@ function BaseAuthorField( { viewType, text, icon, imageUrl } ) {
>
<img
onLoad={ () => setIsImageLoaded( true ) }
alt=""
alt={ __( 'Author avatar' ) }
src={ imageUrl }
/>
</div>
Expand Down

0 comments on commit 8730110

Please sign in to comment.