Lightbox with PhotoSwipe source code

By Arno Welzel, on WordPress.org since 2017. 20,000+ active installs.

Browse code Download zip

This plugin integrates PhotoSwipe to WordPress. All linked images in a post or page will be displayed using PhotoSwipe, regardless if they are part of a gallery or single images. Below is its source code for every one of its 38 releases, what changed in the latest one, and how often it ships.

What changed in 5.25.1

Released Nov 26, 2026, 14 hours after 5.25.0
  • Updated WordPress compatibility information.

3 files changed since 5.25.0: 3 modified, 0 added, 0 removed.

Compare 5.25.0 with 5.25.1

Release history

38 releases since June 2025
  1. 5.25.1 Nov 26, 2026 Updated WordPress compatibility information.
  2. 5.25.0 Nov 26, 2026 Fixed incorrect cleanup of static transients for non-default database table prefixes (for example in multisite installations).
  3. 5.24.0 Nov 16, 2026 Set custom user agent when requesting remote images to avoid errors when servers expect certain user agents.
  4. 5.23.0 Nov 15, 2026 Enable “drag to close” and “pinch to close” for mobile devices.
  5. 5.22.0 Nov 14, 2026 Refactoring of caption sanitizing avoid errors opening PhotoSwipe in case DOMPurify throws an exception.
Full Lightbox with PhotoSwipe changelog with diffs

Source of 5.25.1

149 files
Browse all Lightbox with PhotoSwipe 5.25.1 files Browse trunk