WordPress / WordPress/plugin-check
Add multisite support for admin page
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 362
- Forks
- 126
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 22
Description
Is your enhancement related to a problem? Please describe.
The admin screen from #32 and the plugin action link from #36 are not fully working in multisite yet, or rather, they are limited to the individual site's WP Admin UI. We should expand that so that the same admin screen works in the Network Admin UI as well.
This is particularly critical, since on some multisite configurations regular administrators are not allowed to control plugins.
Acceptance Criteria
- The admin page class from #32 should be expanded to also add the same admin screen on the
network_admin_menuaction hook.- The admin page added can behave the same way for now, but since the "Tools" menu does not exist in the Network Admin, we should add the screen in the "Settings" menu there (i.e. use
add_submenu_page()withsettings.php).
- The admin page added can behave the same way for now, but since the "Tools" menu does not exist in the Network Admin, we should add the screen in the "Settings" menu there (i.e. use
- The plugin action links from #36 should be expanded to also show up in the Network Admin via the
network_admin_plugin_action_linksfilter.- Particular attention has to be paid to the URL, since the page lives under
settings.phphere (instead ofoptions-general.phpin the regular WP Admin).
- Particular attention has to be paid to the URL, since the page lives under
Test Coverage
- Ensure the admin page is added propertly when using the Network Admin specific action.
- Ensure the plugin link is added properly when using the Network Admin specific filter.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the admin page class from #32 and the plugin action links from #36. Review the existing regular-admin hooks, then compare the requested network_admin_menu and network_admin_plugin_action_links behavior, including settings.php URLs. Done means both network-admin paths work and have coverage for their page and link output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 25/100