-
Notifications
You must be signed in to change notification settings - Fork 794
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
Nav Redesign: Improve Plugins menu consistency #37521
Conversation
All sites should now get these plugin menu items: * Installed plugins (plugins.php) * Add New Plugin (plugin-install.php) * Plugin Marketplace (wordpress.com/plugins/:site) Additionally, atomic sites also get "Scheduled Updates" (wordpress.com/plugins/scheduled-updates/:site). This means that sites have consistency across simple and WoA environments, and the plugin marketplace is accessible. This is a WIP, this commit contains some TODOs.
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. |
projects/packages/jetpack-mu-wpcom/src/features/wpcom-site-menu/wpcom-site-menu.php
Outdated
Show resolved
Hide resolved
projects/packages/jetpack-mu-wpcom/src/features/wpcom-site-menu/wpcom-site-menu.php
Outdated
Show resolved
Hide resolved
$found_plugin_install_submenu = false; | ||
foreach ( $menu as &$menu_item ) { | ||
if ( 'plugins.php' === $menu_item[2] ) { | ||
$found_plugin_menu = true; |
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.
I'm failing to see under which circumstances this menu can exist for Simple sites, so I'm considering to simplify the logic here (and have something similar to what we had before).
Updated the stubs in D150355-code but they are not updated in Jetpack. Asked in p1716983860931499-slack-CDLH4C1UZ EDIT: Solved |
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.
Works as intended 👍
Simple Classic | Atomic Classic |
---|---|
Simple Classic:
- Install Plugins links to /wp-admin/plugins.php (SA-only)
- Add New Plugin links to /wp-admin/plugins.php?page=wpcom-install-plugin
- Marketplace links to https://wordpress.com/plugins/:site
Atomic Classic
- Install Plugins links to /wp-admin/plugins.php
- Add New Plugin links to /wp-admin/plugin-install.php
- Marketplace links to https://wordpress.com/plugins/:site
- Scheduled Updates links to https://wordpress.com/plugins/scheduled-updates/:site
Fixes https://github.com/Automattic/dotcom-forge/issues/6940 (see also pfsHM7-YW-p2)
Proposed changes:
In order to improve the consistency menu of the Plugins menu for Simple and Atomic sites, this PR:
/plugins/:site
plugins.php?page=wpcom-install-plugin
. In the future,plugin-install.php
might redirect here (see pMz3w-k1d-p2).Other information:
Jetpack product discussion
N/A
Does this pull request change what data or activity we track or use?
No
Testing instructions:
/plugins/:site
plugins.php?page=wpcom-install-plugin
and check the splash screen is displayed