diff --git a/packages/block-library/src/gallery/shared.js b/packages/block-library/src/gallery/shared.js index 4c1852280effe8..0de4e8586c33ab 100644 --- a/packages/block-library/src/gallery/shared.js +++ b/packages/block-library/src/gallery/shared.js @@ -3,11 +3,6 @@ */ import { get, pick } from 'lodash'; -/** - * WordPress dependencies - */ -import { __ } from '@wordpress/i18n'; - export function defaultColumnsNumber( imageCount ) { return imageCount ? Math.min( 3, imageCount ) : 3; } @@ -24,7 +19,5 @@ export const pickRelevantMediaFiles = ( image, sizeSlug = 'large' ) => { if ( fullUrl ) { imageProps.fullUrl = fullUrl; } - imageProps.alt = - imageProps.alt !== '' ? imageProps.alt : __( 'Image gallery image' ); return imageProps; };