wp-calypso
wp-calypso copied to clipboard
"Preview & Customize" button does not show up for Twenty Twenty-Four
Quick summary
Under specific conditions, the "Preview & Customize" button does not appear for the "Twenty Twenty-Four" theme.
This issue seems to be related to the client side (e.g., redux store) rather than the backend because of the following;
- Reloading the page fixes the problem
- The API response appears to be correct: https://public-api.wordpress.com/rest/v1.2/themes/twentytwentyfour?http_envelope=1&locale=en-gb
- This bug only occurs when clicking the theme card from the search view, not when scrolling directly to the "Twenty Twenty-Four" theme on the
/themes
page.
Previous Conversations: p1700742791214349-slack-C029FM1EH p1700710027291949-slack-CRWCHQGUB
Steps to reproduce
- Go to /themes.
- Search for "Twenty Twenty Four".
- Click the "Twenty Twenty Four" theme card.
- Observe the "Demo site" button.
- Reload the page.
- Observe the "Preview & Customize" button now appears.
What you expected to happen
The "Preview & Customize" button should consistently appear without needing to reload the page.
What actually happened
The "Preview & Customize" button initially does not appear and only shows up after reloading the page.
Impact
Most (> 50%)
Available workarounds?
Yes
Platform (Simple and/or Atomic)
Both
Logs or notes
No response