Skip to content

Commit

Permalink
Let ID-less [gallery] shortcodes fall to Shortcode block (#25144)
Browse files Browse the repository at this point in the history
Fixes #11551
  • Loading branch information
mcsf authored Sep 8, 2020
1 parent f62d144 commit f8a67f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/gallery/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ const transforms = {
},
},
},
isMatch( { named } ) {
return undefined !== named.ids;
},
},
{
// When created by drag and dropping multiple files on an insertion point
Expand Down

0 comments on commit f8a67f8

Please sign in to comment.