Skip to content

Commit

Permalink
Include image caption when converting a classic block gallery (#40872)
Browse files Browse the repository at this point in the history
Co-authored-by: Glen Davies <glen.davies@a8c.com>
  • Loading branch information
glendaviesnz and Glen Davies authored May 6, 2022
1 parent 3964d92 commit 8a07477
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function useShortCodeTransform( shortCodeTransforms ) {
mime: imageData.mime_type,
alt: imageData.alt_text,
link: imageData.link,
caption: imageData?.caption?.raw,
};
}
return undefined;
Expand Down

0 comments on commit 8a07477

Please sign in to comment.