Skip to content

fix: live-refresh Plugins window after install/activate/deactivate - #418

Merged
AllTerrainDeveloper merged 4 commits into
WordPress:trunkfrom
alshakerM:plugins-add-plugin-sync
Jul 25, 2026
Merged

fix: live-refresh Plugins window after install/activate/deactivate#418
AllTerrainDeveloper merged 4 commits into
WordPress:trunkfrom
alshakerM:plugins-add-plugin-sync

Conversation

@alshakerM

@alshakerM alshakerM commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

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

alshakerM and others added 2 commits July 24, 2026 18:43
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>
@AllTerrainDeveloper

Copy link
Copy Markdown
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 :)

@alshakerM

Copy link
Copy Markdown
Contributor Author

#415

Hey,
Sure, no problem.
Thanks for the quick review ;)
BTW, I really like this plugin, it's awesome, please feel free to ping me on any issues, I'm more than happy to pick them up

@AllTerrainDeveloper

Copy link
Copy Markdown
Collaborator

Hey,
Sure, no problem.
Thanks for the quick review ;)
BTW, I really like this plugin, it's awesome, please feel free to ping me on any issues, I'm more than happy to pick them up

Thank you very much! we are open to listening for your ideas too. Feel free to open issues and we can discuss them openly.

@AllTerrainDeveloper
AllTerrainDeveloper merged commit 8766291 into WordPress:trunk Jul 25, 2026
5 checks passed
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.

Plugins Add plugin sync issue

2 participants