Releases version 1.0.9#36
Merged
Merged
Conversation
Release 1.0.8
Localizes the allowed block lists for modal triggers and inner blocks using wp_localize_script. This addresses an issue where recent WordPress versions were stripping custom settings passed via the block_editor_settings_all filter, leading to unreliable availability of these lists in the JavaScript editor.
The `composer.lock` file is no longer tracked and has been added to `.gitignore`.
Fix allowed blocks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Releases version 1.0.9
Note
Low Risk
Scoped editor integration fix with backward-compatible fallbacks; no auth, security, or data-model changes beyond restoring expected filter behavior.
Overview
Release 1.0.9 fixes custom allowed-block lists for the modal block and modal triggers not taking effect in the block editor on recent WordPress versions, where custom keys on
block_editor_settings_allare stripped.PHP now centralizes filtered lists in
get_modal_inner_allowed_blocks()andget_modal_trigger_allowed_blocks(), exposes them to the editor viawp_localize_scriptasblockpartyModalEditorSettings, and keeps the existingblock_editor_settings_allpath as a legacy fallback. Frontend trigger rendering reuses the same helper instead of duplicating filter logic.The editor reads those lists through new
getInnerAllowedBlocks()andgetTriggerAllowedBlocks()helpers (localized data first, then block editor settings, then defaults), replacing directuseSelecton custom settings keys. Version bumps and changelog entries cover the plugin metadata;composer.lockis removed from the repo and ignored, and npm wp-env scripts are renamed toenv:start/env:stop.Reviewed by Cursor Bugbot for commit 4f9c1df. Bugbot is set up for automated code reviews on this repo. Configure here.