-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Site Editor: Hide export button if non-block-based theme #58346
Conversation
Size Change: +9 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Flaky tests detected in 07b6584. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7676676542
|
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.
Part of the testing instructions for this PR are in #58345
Before: Exporting a classic theme creates a zip of the theme with an empty theme.json, parts, and templates folders.
With the PR: the export option is not available, so there is less risk of confusion for classic theme users.
Block themes can still be exported.
@carolinan Thanks for the review! It seems that React Native E2E Tests are also failing on trunk, so I would like to update and merge this PR after that issue is resolved. |
What?
This PR hides the theme's export button when it is not a block theme.
Why?
My understanding is that this feature, as the text suggests, exports updated templates and global styles. However, since neither templates nor global styles are used in the classic theme, I don't think they should be displayed.
How?
Hides the button if it's not a block theme.
Testing Instructions
localhost:8889/wp-admin