Skip to content

Releases: philhoyt/Gallery-Display

Release list

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 05 Sep 23:34

= 1.2.0 =

  • Add: Convert a WordPress Gallery block into a Gallery Display block from the
    block toolbar, and convert it back again. Images, captions, alt text,
    columns, link settings, alignment, spacing and colours all carry across.
  • Add: A caption for the gallery itself, shown below the images. Supports bold,
    italic and links.
  • Add: Left, centre and right alignment, alongside the existing wide and full.
  • Add: An HTML anchor, so a gallery can be linked to directly.
  • Add: Per-image alt text and captions can now be set on the block. Where they
    are, they take precedence; images without them keep following the media
    library as before, so editing an image still updates every gallery using it.
  • Add: Images can open in a new tab, and images marked decorative in a
    converted gallery stay decorative.
  • Change: The gallery wrapper is now a element rather than a
    , so
    the gallery caption is valid HTML. Custom CSS targeting the old element name
    may need updating.

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 05 Sep 01:02

= 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_layouts in PHP, galleryDisplay.layouts and
    galleryDisplay.previewStylesheets in 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.