Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Take Two: Update the gallery block so it limits the columns to the the current number of images #13488
Update the columns attribute when the
Previously this worked if removing images via the X in the editor, but not if you removed them via the media modal
How has this been tested?
Add a gallery with multiple images, set the columns to be the maximum allowed. Edit the gallery via the media modal and remove images, when you save the media modal, the columns should be adjusted to match the new number of photos.
Types of changes
Bug fix (non-breaking change which fixes an issue)