diff --git a/.plugin-data b/.plugin-data index 47faabb..fb5fb22 100644 --- a/.plugin-data +++ b/.plugin-data @@ -1,4 +1,4 @@ { - "version": "1.0.8", + "version": "1.0.9", "slug": "blockparty-modal" } diff --git a/.wordpress-org/blueprints/blueprint.json b/.wordpress-org/blueprints/blueprint.json index 91f8065..f092691 100644 --- a/.wordpress-org/blueprints/blueprint.json +++ b/.wordpress-org/blueprints/blueprint.json @@ -11,7 +11,7 @@ "pluginData": { "resource": "git:directory", "url": "https://github.com/BeAPI/blockparty-modal", - "ref": "1.0.8", + "ref": "1.0.9", "refType": "tag" }, "options": { diff --git a/CHANGELOG.md b/CHANGELOG.md index d65141a..1cda803 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.9] + +* Fix `blockparty_modal_inner_allowed_blocks` and `blockparty_modal_trigger_allowed_blocks` filters not being applied in the block editor on recent WordPress versions. +* Pass allowed block lists to the editor script via `wp_localize_script` so they are available despite the block editor settings allowlist. + ## [1.0.8] * Add GitHub Actions check and `tests/bin/check-release-version.sh` to validate that release version bumps are consistent across all versioned files. diff --git a/blockparty-modal.php b/blockparty-modal.php index fc53792..4cf84b9 100644 --- a/blockparty-modal.php +++ b/blockparty-modal.php @@ -2,7 +2,7 @@ /** * Plugin Name: Blockparty Modal * Description: Modal block for WordPress editor. - * Version: 1.0.8 + * Version: 1.0.9 * Requires at least: 6.8 * Requires PHP: 8.1 * Author: Be API Technical Team @@ -19,7 +19,7 @@ exit; // Exit if accessed directly. } -define( 'BLOCKPARTY_MODAL_VERSION', '1.0.8' ); +define( 'BLOCKPARTY_MODAL_VERSION', '1.0.9' ); define( 'BLOCKPARTY_MODAL_URL', plugin_dir_url( __FILE__ ) ); define( 'BLOCKPARTY_MODAL_DIR', plugin_dir_path( __FILE__ ) ); diff --git a/package-lock.json b/package-lock.json index 3cc3b2a..862f1c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "blockparty-modal", - "version": "1.0.8", + "version": "1.0.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "blockparty-modal", - "version": "1.0.8", + "version": "1.0.9", "license": "GPL-2.0-or-later", "dependencies": { "@beapi/icons": "^1.2.6", diff --git a/package.json b/package.json index 5181598..a427091 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blockparty-modal", - "version": "1.0.8", + "version": "1.0.9", "description": "Add a modal block to the WordPress editor.", "author": "Be API", "license": "GPL-2.0-or-later", diff --git a/readme.txt b/readme.txt index 369a9c6..f03094d 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: Be API Technical Team Tags: block Tested up to: 6.8 -Stable tag: 1.0.8 +Stable tag: 1.0.9 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -45,6 +45,10 @@ directory take precedence. For example, `/assets/screenshot-1.png` would win ove == Changelog == += 1.0.9 = +* Fix `blockparty_modal_inner_allowed_blocks` and `blockparty_modal_trigger_allowed_blocks` filters not being applied in the block editor on recent WordPress versions. +* Pass allowed block lists to the editor script via `wp_localize_script` so they are available despite the block editor settings allowlist. + = 1.0.8 = * Add CI check and a shell script to validate version bumps for releases. * Add a project changelog and update the WordPress Playground demo blueprint. diff --git a/src/blockparty-modal/block.json b/src/blockparty-modal/block.json index 18829f0..8069aa7 100644 --- a/src/blockparty-modal/block.json +++ b/src/blockparty-modal/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "blockparty/modal", - "version": "1.0.8", + "version": "1.0.9", "title": "Modal", "category": "widgets", "description": "Insert a modal dialog that opens on trigger. Configure content and behaviour in the editor; the modal is displayed on the frontend when activated.", @@ -26,7 +26,11 @@ "closedBy": { "type": "string", "default": "any", - "enum": [ "any", "closerequest", "none" ] + "enum": [ + "any", + "closerequest", + "none" + ] }, "enableCloseButton": { "type": "boolean", @@ -46,7 +50,10 @@ }, "example": {}, "supports": { - "align": [ "wide", "full" ], + "align": [ + "wide", + "full" + ], "dimensions": { "height": true, "minHeight": true