Added / New features
Anchor link for: Added
PhotoSwipe 5 is now available. It is deliberately minimal: the caption sits below or beside the photo rather than over it, and YouTube, Vimeo and self-hosted videos play inside it. PhotoSwipe 4 stays the default, so nothing changes on your site unless you pick the new one.
Visitors can now download a whole gallery as one zip file from a single link, created in the browser using a service worker, so nothing is ever stored on your server. Switch it on under General settings, where you can also reword the link, or turn it on for one gallery only. The link sits below the grid but is movable anywhere else with a satellite shortcode. There is also a toast with the status of the download. The zip holds what the active filter is showing, plus the photos hidden behind album or cover tiles, which arrive as folders in the zip. Video clips are excluded, and so is any tile that opens a link instead of a photo, i.e. a recent posts grid will skip this feature. A very large gallery may arrive in a few parts to avoid running out of memory.
Changed / Improved
Anchor link for: Changed
The plugin's settings screen now appears the moment the page arrives, instead of staying blank while every other script on your dashboard finishes loading. It also stays readable and its tabs stay clickable if JavaScript is blocked or fails.
JIG's PhotoSwipe styling now reaches only the lightbox JIG itself opens, so it can no longer restyle a PhotoSwipe that another plugin put on the same page. If you have custom CSS aimed at JIG's PhotoSwipe, put the plugin's own class in front of it: .pswp.jig-pswp for PS4, .pswp.jig-pswp5 for PS5.
Downloads now begin the moment you click and pass through the server as the bytes arrive, so even a very large image no longer risks exhausting your server's memory. Images hosted on your own site skip the plugin's download handler entirely: the link points straight at the image and carries the HTML download attribute, which is all the browser needs to save it rather than open it.
Large galleries are now built up to 60% faster, and redrawn faster still when the window is resized. The whole grid is added to the DOM in a single write instead of one picture at a time, and the caption work now measures every picture before it restyles any of them. Captions below the thumbnails improved further: they are shortened to fit whenever the grid is redrawn, instead of being checked over and over for as long as the page stays open.
Fixed
Anchor link for: Fixed
Fixed galleries vanishing from Elementor pages after the first view. Elementor 3.26 and newer freezes a copy of certain elements, and a grid inside one stopped working for everyone after the first visitor. It affected Elementor's own Image Gallery widget, which JIG picks up because that widget builds an ordinary WordPress gallery under the hood, and grid shortcodes placed in Tabs, Accordion or Toggle widgets. Grids are now kept out of the frozen copy, and any copy already saved is cleared once, when you update.
Fixed prettyPhoto refusing to open at all on certain Vimeo links, which left the visitor with no lightbox. Unlisted Vimeo videos now play, and so do YouTube Shorts links copied straight from the share dialog.
Hover captions no longer flash at full strength for an instant before fading in. It was visible in Firefox, most noticeably right after closing the lightbox with the mouse resting on a thumbnail.
Videos no longer offer a download link. The link on an Instagram video always failed, and on Facebook or YouTube it quietly handed over the cover image instead of the clip people were watching.
Download links now work on photos whose web address does not end in a familiar image extension such as .jpg or .png. Some image hosts serve photos that way, and the plugin used to refuse them, so the download link failed on every click.
Fixed a grid rebuilding itself endlessly when its thumbnails would not load, which left the page flickering and never showed the message explaining what to fix. A picture that will not load is now dropped from the grid, whatever is serving it, including Jetpack Site Accelerator, and the message appears only when nothing is left to show.
On sites using Jetpack Site Accelerator, JIG had gone back to generating gallery thumbnails on your own server instead of letting Site Accelerator size them. Site Accelerator sizes them again, so that work stays off your server.
On sites using Jetpack Site Accelerator, JIG stopped sizing gallery images altogether whenever its own thumbnail engine could not run on the server, so visitors downloaded full-size pictures for small thumbnails. Site Accelerator now keeps sizing the images it handles, and the Thumbnails screen says which sources are affected while the engine is unavailable.
When using the "Replace site's hostname with" (CDN Host) setting with dynamic thumbnail generation on, JIG fetched each original through your CDN before resizing it, wasting a round trip. Originals are now read from your own server, and the resized thumbnail gets served from your CDN.
Your CDN hostname is now used wherever your site's own address appears, instead of being skipped for certain gallery types. RSS grids reading your own feed, and the featured images in recent posts grids, go through your CDN now.
Filling in a CDN hostname under "Replace site's hostname with" now takes your grids off Site Accelerator altogether. Previously, on a site running both, Jetpack Site Accelerator took precedence over your CDN host, and pictures it refused were handled by neither.
Images on your own site whose address carries a query string, such as photo.jpg?ver=2, now get thumbnails too. JIG's thumbnail engine used to refuse them, so those thumbnails failed to load.
Fixed photos spilling past their border frame when Middle border width was set and captions sat below the photo. It showed up after the page resized, a filter was applied, or more photos loaded.
Facebook connections that never expire no longer ask to be renewed. A Login for Business (Pages) app gets no expiry date from Facebook, yet JIG announced that such a connection had expired while the galleries kept working. JIG now tells you when a connection has actually stopped working instead of guessing from a date, and clears the notice once it works again.
Security
Anchor link for: Security
Fixed a disclosure of your Facebook access tokens (CWE-200) to logged-in users who should not have been able to open the shortcode editor at all (CWE-862). The editor now requires the ability to write posts as well as the minimum user role you set, and no admin screen puts a Facebook token in the page anymore, neither the editor nor the plugin's settings; it is looked up on the server when it is needed. Only the admin area was ever involved, never your public pages.
The download link now carries an address signed by your own site, and the plugin refuses to fetch anything else. Previously anyone could point that address at any image on the web and have your server fetch it on their behalf, on your bandwidth. If a caching plugin is still serving pages saved from before this update, the download links on them stop working until that cache refreshes.
WPML compatibility improvements, RSS feed support for Vimeo Showcases, and PHP fixes
Improved:
When working with WPML and its Media Translation, JIG’s previews in the admin (in Gutenberg and Shortcode Editor) will now show the same set of images as seen on the frontend. Previously there was a discrepancy where in the admin you ONLY saw images translated to the target language, while the frontend shows untranslated images as a fallback.
The language switcher on the admin bar now lets you preview the grid in another language, previously it led to a new grid creation screen. The post type for grids is not meant to be translatable, but the current language flag in the admin does have an effect on the preview output of the grid, as it takes translated captions into account.
Translatable settings (texts) now show up the language according to the flag in the admin bar, when previewing JIG (Gutenberg and Shortcode Editor). Previously this only worked on the frontend.
Better height measurement for Gutenberg previews (elements around JIG could cause it to cut off slightly).
RSS feature now supports Vimeo Showcases too (formerly Albums).
500px removed from RSS feeds feature, as they are no longer being offered.
The “Disable right mouse menu” setting (its global variant) will now prevent right clicks in self-hosted videos in lightboxes.
Bugfixes:
Flickr-related PHP error on line 17670. During a recent AWS service disruption and also for accounts that got deleted (on Flickr) after being added to JIG, the error became apparent.
When getting size of a remote image: fixed “imagesx(): Argument #1 ($image) must be of type GdImage, false given” in stricter PHP versions by adding validation check after imagecreatefromstring() to ensure GdImage object exists before processing dimensions.
Bugfixes:
Function _load_textdomain_just_in_time was called incorrectly
Some deprecated notices on PHP 8.4
– Security update, Gutenberg block design and Facebook icon fixes
Bugfixes:
Gutenberg Grid selector dropdown design fixed, especially for widgets screen where it was unclickable
Missing Facebook icons after a while (once they expire) in the Shortcode Editor (now given a fallback there too)
Deprecated: Implicit conversion from float to int loses precision in…
Updated:
Image downloader’s vulnerability fixed
Improved:
Bugfixes:
- Made the “Grid/Shortcode Editor minimum user role” setting more useful by including the “JIG” menu with its “Grid” and “Create New Grid” in its effect.
- Facebook default app type setting switched to Business, this only affects new installations.
- Facebook Feed can now show cover image changes and more “album type” posts.
- Adjusted Facebook Feed feature’s captions to be more meaningful.
- Dropped support for RML versions 2.8 and earlier, which are now over 7 years old.
- Dropped MobileDetect PHP Library for wp_is_mobile() function.
- Fallback icon instead of broken image for Facebook entities when their profile images expire (in the dashboard).
Updated:
- When refreshing Facebook access, because of a bug the Pages received the User Token instead of a Page Token, this affected the ability to load Page Feeds.
- Regarding the Facebook feature’s Business App Type, you no longer need to have “full control” of a Page that you are an admin of, simply being invited with “Facebook access” is enough and it will show up in JIG (to show content from).
- When you no longer have access to a Facebook page or it is gone, it’ll be auto-removed from the dashboard instead of hanging the UI.
- PHP 8.3 compatibility.
- PHP Deprecated: usort(): Returning bool from comparison function is deprecated.
- PHP Warning: Attempt to read property “ID” on null.
- PHP: A scalar of type ‘string’ used as an array.
- PHP: post_thumbnail_id accessed via magic method.
- Removed references to the nonexisting $post->page_name.
- PHP: Trying to get property of non-object of type void.
- Addressed deprecated Elementor and Jetpack info messages (using both their new and old methods to stay compatible with versions older than 1-2 years).
- “Show children of a page” in Recent Posts.
- PHP Warning: Undefined array key “collection” (in relation to Flickr source).
- Facebook API to v20.
- Translation template (Spanish is 94% for now).
- Documentation.
dded / New features
- Support for Facebook App Types with a new setting. If your app continues with a legacy type of "None" then no changes for you, for now. New apps must have (and some existing apps have been switched to) a Type, meaning restricted permissions of accessing either(!) your Profile or your Pages. The new setting in JIG lets you match the Type of your app for continued operations. The default of the new setting is the "None" type, so the update doesn't break anything for existing users. The next update will switch the default to "Business" which will affect new installations (since you can no longer create an app without a type).
Changed / Improved
- Facebook App setup instructions.
- For less friction, when setting up a Facebook connection, you no longer need to save changes after filling in the App ID/Secret/Type but before adding the current user and administered pages.
- No longer using z-index for caption special effect visibility (in front of or behind overlay) and for the order of overlay/caption components. This improves compatibility with stuff like menus and popups.
- Simplified borders: when captions are below thumbs, the inner and middle border remain around the image, and only the outer border encapsulates the caption (this is nice for a Polaroid look).
- Auto-refresh of Facebook avatars removed as it was too aggressive and caused an infinite loop exhausting API limits when one of them arrived broken. If an avatar is missing, you can refresh that page or profile manually. It has no impact on the galleries.
Fixed
- "This block has encountered an error and cannot be previewed." due to my usage of the Placeholder component on WP 6.4.
- Facebook API v18 compatibility, including business_management scope to gain access to all your managed pages again.
- When using the middle border, but the caption is not below thumbs, there was too much padding on the sides of the caption.
- A conflict in the animation of outer and middle border.
New features:
Improved:
- New setting – Limit height to viewport. It prevents rows from appearing taller than the device/browser viewport (usable height of the screen), avoiding the need for scrolling to wholly explore a thumbnail. This was the default behavior since v2.8 (for over seven years), but there was no way to turn it off. Certain use cases benefit from unlocking tall rows, such as showing illustrations, mobile screenshots, lightboxless galleries, and portraits that don’t need to be seen in their entirety. Sometimes filling all available width is more important than fitting an image that is only slightly taller.
- A global function jigHookItems (items){}, when defined (for example in the Custom JS of JIG settings), allows you to influence the all items (images) list of your grids, prior to creation. It arose from a customer request to manipulate image URLs on the client side. In that particular case, we used it to change extensions to WebP when the browser supports it, to load pre-generated WebP thumbnails instead of TimThumb. The server-side equivalent could not be used due to caching plugins.
Bugfixes:
- Font size slightly increased in the Grid/Shortcode Editor.
Updated:
- The detection for RML (Real Media Library) failed when it wasn’t installed and polluted the shortcode with attributes related to that.
- When conditional script loading was turned off (to be unconditional), Grid live preview failed to work.
- Checking for non-existent (or deleted) RML ID works again without showing a PHP warning.
- RML’s “Overview of top level objects” functionality is restored.
- Pre-PHP7.1 compatibility: removed “public const” from source.
- PhotoSwipe: pswp—undefined-theme class removed when opened with anything other than the light theme.
- Documentation