Theme Showcase: Show only locally installed themes in My Themes on Summer Special Personal sites #106910
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.



Fixes DOTTHEM-115
Proposed Changes
Why are these changes being made?
The My Themes tab in the Calypso Theme Showcase has different behaviors on Simple and Atomic.
The idea is to show all the locally installed themes, mimicking the wp-admin counterpart. This works fine on Atomic, but on Simple, all Dotcom themes are locally installed.
For this reason, for a long time, the My Themes tab was only available on Atomic, until we started displaying it on all sites in January 2024. On Simple, instead of showing all Dotcom themes, we only show those that were previously activated on the site.
In that PR, we missed a workaround from February 2022, intended to prevent showing all themes on downgraded Atomic sites during the brief transitional period where a site was on Atomic but not on Business (when only Business was supposed to have access to Atomic features).
With our My Themes changes, that workaround was practically unreachable.
Alas, it came into play again with Summer Special opening Atomic features to all plans, creating an unexpected inconsistency.
Summer Special sites on Personal would hit that condition, accidentally showing all Dotcom themes even though the site has access to external themes.
Testing Instructions
/themes/my-themes/:SITE).Pre-merge Checklist