Skip to content

Commit

Permalink
Gallery: Remove caption fallback for alt attribute (#26676)
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham authored Nov 4, 2020
1 parent 703e324 commit e2bdfbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function save( { attributes } ) {
const img = (
<img
src={ image.url }
alt={ image.alt !== '' ? image.alt : image.caption }
alt={ image.alt }
data-id={ image.id }
data-full-url={ image.fullUrl }
data-link={ image.link }
Expand Down

0 comments on commit e2bdfbe

Please sign in to comment.