Fix Plugins dropping to native page after activating a plugin (v2.7.2)
Unlike Posts/Pages/Media/Users/Comments, Plugins only ever had its
sidebar link rewritten (MenuSerializer.php) — there was no
redirect_native_pages() case for direct visits to plugins.php itself.
WordPress's own post-activate/post-install redirect
(wp_redirect(self_admin_url('plugins.php?activate=true'))) is exactly
that: a direct visit with no ?page= param, landing on the true native
page until the sidebar link was clicked again.
Added the missing case, gated by modern_plugins like the others,
redirecting to plugins.php?page=aurora-admin-plugins to match the URL
the sidebar link itself already uses.
Verified live by visiting plugins.php?activate=true directly (the
exact URL WP's own redirect produces) — now lands on the Aurora page
correctly, confirmed with FileBird Lite showing Active in the list.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
fdd252cfe2
commit
07d77bda57
@@ -5,6 +5,20 @@ version bump. Starts at 2.1.0 — earlier history (the theming rebuild,
|
||||
window chrome/taskbar, Site Editor support, etc.) lives in `git log` and
|
||||
`PROJECT_STATUS.md`, not reconstructed here.
|
||||
|
||||
## [2.7.2] - 2026-07-05
|
||||
|
||||
### Fixed
|
||||
- Installing/activating a plugin dropped back to the native WordPress
|
||||
Plugins page instead of staying in Aurora's UI, until the sidebar's
|
||||
"Plugins" link was clicked again. Unlike Posts/Pages/Media/Users/
|
||||
Comments, Plugins only ever had its sidebar *link* rewritten
|
||||
(`MenuSerializer.php`) — there was no `redirect_native_pages()` case
|
||||
for direct visits to `plugins.php`, which is exactly what WordPress's
|
||||
own post-activate/post-install redirect does
|
||||
(`wp_redirect(self_admin_url('plugins.php?activate=true'))`, no
|
||||
`?page=` param). Added the missing case, matching the pattern already
|
||||
used for the other four pages.
|
||||
|
||||
## [2.7.1] - 2026-07-05
|
||||
|
||||
### Fixed
|
||||
|
||||
Reference in New Issue
Block a user