fix: live-refresh Plugins window after install/activate/deactivate - #418
Merged
AllTerrainDeveloper merged 4 commits intoJul 25, 2026
Merged
Conversation
Mirrors the posts/pages content-changes pattern for plugins: - PHP: wire activated_plugin, deactivated_plugin, deleted_plugin, and upgrader_process_complete hooks to record into the realtime changelog, so the admin-footer and Heartbeat paths emit desktop-mode.plugin.changed to any open window. - Bridge: return 'plugin' from _desktop_modeListType for plugins.php so desktop-mode.plugin.changed triggers a soft DOM-swap on that screen. plugin-install.php is intentionally excluded — reloading it mid-session would discard search results or reset an in-progress install. - Bridge: listen for wp-plugin-install-success and post the broadcast directly to the shell, since AJAX installs have no page navigation and admin-ajax.php is outside the chromeless allowlist. The native Plugins window's Installed tab already subscribes to desktop-mode.plugin.changed and calls reload() — no JS changes needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collaborator
|
Hey! Thank you! We will merge those changes once we have this PR merged: #415. Expect it to be at the very least this Monday :) |
Contributor
Author
|
Hey, |
Collaborator
Thank you very much! we are open to listening for your ideas too. Feel free to open issues and we can discuss them openly. |
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.
Fixes #417
I noticed a live sync bug in the plugins page that doesn't exist in the posts and pages page. This copies the same pattern to the plugins page.
Before
Screen.Recording.2026-07-24.at.16.51.03.mov
After
Screen.Recording.2026-07-24.at.18.49.13.mov