diff --git a/fancybox.php b/fancybox.php index 4a580aa..b128ca2 100644 --- a/fancybox.php +++ b/fancybox.php @@ -3,7 +3,7 @@ * Plugin Name: FancyBox for WordPress * Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/ * Description: Integrates FancyBox 3 into WordPress. -* Version: 3.4.4 +* Version: 3.4.5 * Author: Colorlib * Author URI: https://colorlib.com/wp/ * Requires at least: 5.6 @@ -36,7 +36,7 @@ * Plugin Init */ // Constants -define( 'FBFW_VERSION', '3.4.4' ); +define( 'FBFW_VERSION', '3.4.5' ); define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) ); define( 'FBFW_URL', plugin_dir_url( __FILE__ ) ); define( 'FBFW_PLUGIN_BASE', plugin_basename( __FILE__ ) ); diff --git a/package-lock.json b/package-lock.json index ae52255..e0567f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fancybox-for-wordpress", - "version": "3.4.4", + "version": "3.4.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "fancybox-for-wordpress", - "version": "3.4.4", + "version": "3.4.5", "license": "GPL-3.0-or-later", "devDependencies": { "clean-css": "^5.3.3", diff --git a/package.json b/package.json index 6eae0bb..4814111 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fancybox-for-wordpress", - "version": "3.4.4", + "version": "3.4.5", "description": "Integrates FancyBox 3 into WordPress.", "homepage": "https://wordpress.org/plugins/fancybox-for-wordpress/", "author": "Colorlib", diff --git a/readme.txt b/readme.txt index 0ab057a..2a72e7a 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: fancybox, lightbox, images, photos, pictures Requires at least: 5.6 Tested up to: 7.2 Requires PHP: 7.4 -Stable tag: 3.4.4 +Stable tag: 3.4.5 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -54,6 +54,10 @@ This plugin is developed and maintained by [Colorlib](https://colorlib.com/), wh If it is useful to you, a [review](https://wordpress.org/support/plugin/fancybox-for-wordpress/reviews/?filter=5) genuinely helps. == Changelog == += 3.4.5 = +Security: Updated DOMPurify, which filters captions and link content, to 3.5.0 for its latest security fixes. +Fixed: On PHP 7.4 and 8.0, an apostrophe saved as `'` in the custom JavaScript settings (custom expression, extra calls, callbacks) stayed encoded and broke the script. These settings now behave the same on every PHP version. + = 3.4.4 = Fixed: Content your own site opens in the lightbox from JavaScript, such as a login form loaded with `.fancyboxforwp({ type: 'ajax', src: ... })`, kept only its text since 3.4.3: form fields and styles were removed. The 3.4.3 security rules now apply where they were meant to, to what a link supplies itself through its `href` or `data-` attributes, and captions on links are still filtered. Thanks to David Anderson for the report. = 3.4.3 = @@ -383,6 +387,9 @@ Fixed errors causes by WordPress SVN. == Upgrade Notice == += 3.4.5 = +Updates DOMPurify to 3.5.0 for its latest security fixes, and fixes custom JavaScript settings containing apostrophes on PHP 7.4 and 8.0. + = 3.4.4 = Fixes forms and styles disappearing from content your own site opens in the lightbox from JavaScript, a regression in 3.4.3. The 3.4.3 security protections for links are unchanged.