Skip to content

[codex] WordPress 7+ compatibility updates#369

Open
Fellan-91 wants to merge 20 commits intomasterfrom
codex/wordpress-7-compat-updates
Open

[codex] WordPress 7+ compatibility updates#369
Fellan-91 wants to merge 20 commits intomasterfrom
codex/wordpress-7-compat-updates

Conversation

@Fellan-91
Copy link
Copy Markdown
Contributor

@Fellan-91 Fellan-91 commented Apr 15, 2026

Summary

This PR updates Lazy Blocks for WordPress 7+ compatibility across the block builder, editor integrations, and compiled assets.

It includes:

  • replacing deprecated ButtonGroup usage with ToggleGroupControl or semantic grouped buttons where multi-select/actions are required
  • stabilizing ColorPalette imports with a backwards-compatible fallback
  • resolving unstable useSelect reference warnings in editor state selectors and consumers
  • making DOM access iframe-safe for the WordPress 7.0 editor
  • initializing emmet-core for the Ace editor to suppress editor warnings
  • filtering out invalid block slugs before editor registration
  • refreshing compiled build artifacts

Why

WordPress 7+ surfaces several deprecations and runtime warnings that affect the editor experience. These updates align the plugin with the newer component APIs and editor behavior while preserving compatibility with older environments where needed.

Impact

  • reduces deprecation noise in the editor
  • avoids unstable selector reference warnings
  • prevents iframe-related DOM access issues in the editor
  • suppresses Ace/Emmet initialization warnings
  • skips invalid auto-draft blocks during editor registration

Validation

  • committed as 7 focused commits matching the requested change groups
  • repository pre-commit hooks ran on each commit (lint-staged, JS lint, and PHP lint where applicable)

This comment was marked as resolved.

- Add aria-label to all role="group" wrappers for accessibility
  (repeater, gallery, placement)
- Add defensive import fallback for ToggleGroupControl: try stable
  export first, fall back to __experimental (width.js, date_time)
@Fellan-91 Fellan-91 marked this pull request as ready for review April 15, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants