Merged
Conversation
Ver/1.0.2
Add WP ENV
Migrates the FAQ block to utilize InnerBlocks for improved content structure and editing experience. This change replaces the previous attribute-based approach with dedicated `faq-item`, `faq-question`, and `faq-answer` blocks, offering better control and flexibility. Also includes schema generation and support for PHP versions up to 8.4.
Migrates the FAQ block to use inner blocks for managing questions and answers, allowing for greater flexibility and content structure. Adds a migration script to convert existing FAQ blocks from the old `questions` array format to the new inner blocks format. Includes deprecated block configuration to handle the migration process smoothly.
Enables inner blocks for FAQ question, allowing richer content within the question. Handles conversion between accordion and non-accordion states: - When switching to non-accordion, moves question text to a heading block. - When switching to accordion, extracts content from the first inner block and sets it as the question text.
Moves the FAQ block's structure to leverage build artifacts and enhances its functionality. This includes: - Registers block types from build directory for better organization. - Introduces `wp_localize_script` to pass configuration from PHP to the view script. - Implements Javascript translations for block editor. - Adds `@beapi/be-a11y` for accessibility improvements, enabling accordion functionality.
Add inner blocks
Simplifies imports by combining `useBlockProps` and `InnerBlocks` into a single import statement from `@wordpress/block-editor` in multiple files. This change improves code readability and consistency across the FAQ blocks.
MarieComet
reviewed
Jan 27, 2026
Improves security by limiting the HTML tags and attributes permitted in the acceptedAnswer property of the FAQ schema. Removes support for potentially unsafe or unnecessary elements such as img, blockquote, cite, q, div, span, and hr, leaving only basic formatting elements.
Updates project dependencies to the latest compatible versions as reflected in the composer.lock file. This ensures that the project benefits from the newest features, bug fixes, and security patches available in the updated dependencies.
MarieComet
approved these changes
Jan 27, 2026
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.
No description provided.