v1.1.0
= 1.1.0 =
- Add: Image ordering controls. Order a gallery by date, title, random, or the
order you arranged it in, with a best-fit option that places wide images in
the mosaic layout's larger cells. - Add: Filters that let a companion plugin register its own layout —
gallery_display_valid_layoutsin PHP,galleryDisplay.layoutsand
galleryDisplay.previewStylesheetsin JavaScript. - Security: Escape and validate block attributes before they reach the editor
preview. A crafted attribute could previously inject markup that ran in the
admin. The preview is now sandboxed as well. - Security: Validate the aspect-ratio and block-gap values used in the block's
inline styles. - Fix: Masonry and mosaic layouts no longer keep their load-time widths when
the browser is resized. - Fix: The lightbox stylesheet now loads in the document head instead of after
the page content, removing a flash of unstyled links. - Fix: Gallery links fall back to the attachment title or caption for their
accessible name when the image has no alt text. - Fix: Asset cache-busting used a stale version number, so browsers could keep
serving outdated CSS and JavaScript after an update. - Change: Image-size labels in the block sidebar are now translatable.