-
Notifications
You must be signed in to change notification settings - Fork 3
Fix unregistered blocks after plugin installation #348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unregistered blocks after plugin installation #348
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes an issue where certain blocks were missing after plugin installation by improving the distinction between inactive and not-installed plugins, and ensuring proper plugin initialization timing.
- Adds logic to differentiate between inactive plugins (which can be activated) vs not-installed plugins (which need installation)
- Implements delayed reload mechanism with plugin-specific timeouts to allow proper block registration
- Updates Jetpack module handling to ensure required modules are properly activated
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
File | Description |
---|---|
src/hooks/usePluginRequirements.js | Adds hasNotInstalledPlugins function to distinguish not-installed from inactive plugins and updates CTB logic |
src/hooks/usePluginManager.js | Implements plugin-specific delays before reload and adds cache-busting timestamp parameter |
includes/Services/PluginService.php | Updates premium plugin activation logic and improves Jetpack module activation handling |
includes/Data/PluginStatus.php | Adds special Jetpack module status checking to ensure required modules are active |
build/2.10.1/wonder-blocks.asset.php | Updates asset version hash for build changes |
Proposed changes
This PR fixes an issue where certain blocks were missing after installing a required plugin.
Type of Change
Production
Development
Visual
Checklist
Further comments