Skip to content

Commit

Permalink
Remove the arbitrary alt text that is added to gallery images based on
Browse files Browse the repository at this point in the history
…#13164 (comment) (#35936)

Co-authored-by: Glen Davies <glen.davies@a8c.com>
  • Loading branch information
glendaviesnz and Glen Davies authored Oct 26, 2021
1 parent f751a65 commit bf748d3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/block-library/src/gallery/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
};

0 comments on commit bf748d3

Please sign in to comment.