Use contextual snackbar text when activating a theme from preview#68779
Use contextual snackbar text when activating a theme from preview#68779dhananjaykuber wants to merge 4 commits intoWordPress:trunkfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Also there is a test that would need to be updated: \test\e2e\specs\site-editor\activate-theme.spec.js |
|
Hi In the tests, I don't think the theme name "Emptytheme" should be included. The theme name is not in the snackbar. |
|
There are two utilities in the Edit Site package called isPreviewingTheme and currentlyPreviewingTheme you could perhaps look into copying them. |
|
Thanks for the PR! Closing as fixed via #75385 |
Fixes #56876
What?
This PR updates the success notification message displayed when activating a theme via the Site Editor. Previously, the message showed "Site updated.", which has now been corrected to "Theme activated." for better clarity.
Why?
The current message, "Site updated.", can be misleading as it does not accurately convey the action taken when activating a theme. This change improves the user experience by providing a clearer and more appropriate notification.
Testing Instructions