You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[3.1.2] - 2026-03-07
Fixed
Fixed mobile image upload preview reliability in assets/js/bitstream.js and includes/class-ajax-handlers.php:
Added a server-provided browser-safe preview_url for uploaded images.
Updated composer preview rendering to prefer preview_url, improving compatibility for formats like HEIC where the original file URL may not render in-browser.
Fixed mobile like registration consistency in assets/js/bitstream.js:
Replaced per-element like listeners with delegated click handling.
Added robust in-flight guarding and like-state syncing so likes register and counters update reliably, including on cards loaded dynamically.
Fixed mobile/PWA like persistence edge cases in includes/class-ajax-handlers.php and sw.js:
Removed an over-restrictive capability gate in handle_like() that conflicted with guest (nopriv) like handling.
Updated service worker fetch strategy to use network-first for BitStream page navigations and avoid stale cached HTML/nonces that could cause mobile AJAX likes to fail.