Skip to content

Fix role capability sync lifecycle#375

Merged
nk-o merged 3 commits into
masterfrom
issue-373-role-capability-sync-clean
Jun 10, 2026
Merged

Fix role capability sync lifecycle#375
nk-o merged 3 commits into
masterfrom
issue-373-role-capability-sync-clean

Conversation

@Fellan-91

Copy link
Copy Markdown
Contributor

Summary

  • move Lazy Blocks role capability sync to explicit activation and migration paths
  • remove the helper-level capability version gate and rely on the existing plugin migration version
  • add focused PHPUnit coverage for upgrade and fresh-install capability sync behavior

Testing

  • npm run test:unit:php -- --filter 'CapabilitySyncTest|ExportPermissionTest'

Fixes #373

@blacksmith-sh

This comment has been minimized.

@nk-o nk-o merged commit ca85fb2 into master Jun 10, 2026
8 checks passed
@nk-o nk-o deleted the issue-373-role-capability-sync-clean branch June 10, 2026 13:48
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.

Performance issue: add_cap() is called repeatedly on admin_init hook

2 participants