Repository navigation
Plugins: turn the Marketplace tab on, and let it work on the Simple site Add Plugins screen - #53169
Merged
rcrdortiz merged 9 commits intoOct 13, 2026
Conversation
…ns are missing Simple sites draw the Add Plugins screen from their own page, without wp-admin/includes/plugin-install.php and under core's screen id. The cards no longer call install_plugin_install_status() when it is absent, and the details modal recognises that screen.
…re prices Two filters for the Simple Add Plugins screen in wpcom: wpcom_marketplace_checkout_url, so a purchase checkout cannot complete goes through Calypso, and wpcom_marketplace_store_products, since the in-process API client on Simple cannot reach the v1.1 products endpoint the cards are priced from.
Contributor
|
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Contributor
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Code Coverage SummaryCoverage changed in 2 files.
|
rcrdortiz
marked this pull request as ready for review
October 5, 2026 15:33
Core caps the strip's left column at 180px for ratings, and a price with its saving needs up to 192px, so the saving wrapped on most cards. That row only shares its line with "Last Updated", so give the price whatever that does not need, and never less than core's 180px.
…sonal-premium-and-business-overtake-the-core
…cks it A site whose plan does not include purchased plugins can only buy one with a plan in the same checkout, which a Simple site's checkout URL filter now adds. "Purchase" read as if the plugin were all it paid for. Its button says "Upgrade and purchase" there instead, and wraps onto two lines in core's 120px button column rather than running over the card's name.
Covers both labels. The test runs in its own process: Brain Monkey's stub of wpcom_site_has_feature() would otherwise stay defined for the rest of the run and relabel every later button.
The wpcom-plugins-marketplace-tab flag now defaults to on, so the tab and its cards show on the Add Plugins screen of every Atomic site, and of every Simple site once WordPress.com's Simple screen is in. The flag stays as an off switch: per site from Tools > Feature Flags (a8c), or for every site by setting the default back. Tests that checked the tab stays out with the flag off now turn it off themselves instead of relying on the default, and the tab tests register the flag again, since the feature flags tests reset the registry.
The four entries described parts of one change: the tab going live on every site, Simple included.
rcrdortiz
deleted the
dotpar-19-simple-personal-premium-and-business-overtake-the-core
branch
October 13, 2026 15:05
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.
Part of DOTPAR-19
Proposed changes
Simple sites are getting a core-style Add Plugins screen at Plugins > Add New Plugin, so they browse plugins the way Atomic sites do. It lives in WordPress.com's own code rather than here: Simple does not ship
wp-admin/includes/plugin-install.php, and installing a plugin there means moving the site to Atomic, which WordPress.com handles. That screen fires the same hooks as core's and calls itself theplugin-installscreen, so the Marketplace tab and cards from this package attach to it. Four things stood in their way, and this fixes them:install_plugin_install_status()whether a product is installed.wpcom_marketplace_is_installed()now answers that, and treats the function's absence as nothing installed, which is true on Simple.plugin-install.php. It now also recognises theplugin-installscreen, which is how the Simple page identifies itself.install-purchased-plugins, and buying one starts the move to Atomic, which Calypso explains first when anything stands in the way. A newwpcom_marketplace_checkout_urlfilter lets the Simple screen send the purchase through Calypso's plans page, so a plan goes in the same cart, or send it through the product's Calypso page when something blocks the move.wpcom_marketplace_store_productsfilter lets the Simple screen supply the store's products itself.It also keeps a product's saving on the same line as its price, on Atomic as well. Core caps that column of the card's bottom strip at 180px for ratings, and a price with its saving needs up to 192px, so "Save 31%" wrapped onto its own line on most cards. That row only shares its line with "Last Updated", so the price now gets whatever that does not need, and never less than core's 180px.
Where the site's plan does not include purchased plugins, the button now says Upgrade and purchase rather than Purchase, since a plan is bought in the same checkout. The longer label wraps onto two lines inside core's 120px button column instead of running over the card's name.
It also turns the Marketplace tab on for every site. The
wpcom-plugins-marketplace-tabflag now defaults to on, so the tab and its cards show on the Add Plugins screen of every Atomic site, and of every Simple site once the WordPress.com change is in. The flag stays as an off switch: per site from Tools > Feature Flags (a8c), or for every site by setting its default back.Apart from the tab going live and the saving fix, nothing changes on Atomic, where a site's plan always includes purchased plugins: the new filters are not used there, and
wpcom_marketplace_is_installed()gives the same answer as before wherever core's function exists.Before and after
The Simple site Add Plugins screen, on a sandboxed Free Simple site, with this change and the WordPress.com one.
A Marketplace product's details there:
Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
The
wpcom-plugins-marketplace-tabflag is on by default now.Atomic:
Simple, together with the WordPress.com change that adds the screen: