Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

[Templates] Page using Custom Template previews with default template on Atomic sites #81770

Closed ricklabsdotn8 closed 3 weeks ago

ricklabsdotn8 commented 1 year ago

Quick summary

Loading a custom template to a page does not load the appropriate preview.

Steps to reproduce

Create a custom page/post template

  1. Create a custom page/post template under Appearance → Editor → Templates
  2. Click on Add Template (plus button)
  3. Select Custom Template
  4. Style the Custom Template accordingly

Apply the page/post template

  1. Create a post/page
  2. On the page/post settings, change the template to the custom template

What you expected to happen

The page/post should be updated to preview the custom template

What actually happened

Nothing happens, and the template can only be previewed on the frontend. Reloading the page does not help.

Impact

One

Available workarounds?

No and the platform is unusable

Platform (Simple and/or Atomic)

No response

Logs or notes

6832681-zen

Current workaround

github-actions[bot] commented 1 year ago

Support References

This comment is automatically generated. Please do not edit it.

cuemarie commented 1 year ago

📌 REPRODUCTION RESULTS

📌 FINDINGS/SCREENSHOTS/VIDEO Quick triaged on Simple for now, and I am able to replicate. Previewing doesn't show the custom template, but publish/update does apply the correct template.

https://github.com/Automattic/wp-calypso/assets/27249804/35d5d933-defc-49c5-9043-5fab33d210f6

📌 ACTIONS

cuemarie commented 1 year ago

📌 REPRODUCTION RESULTS

📌 FINDINGS/SCREENSHOTS/VIDEO I can replicate this only on an Atomic site within WordPress.com.

Atomic

https://github.com/Automattic/wp-calypso/assets/27249804/19237d49-9e1f-4918-bab2-3f2a08f5970c

Simple

https://github.com/Automattic/wp-calypso/assets/27249804/91673548-023e-4a45-946e-1a3a60c01ca3

Self-Hosted tested with GB 16.6.0 and 16.7.0 - both work as expected.

https://github.com/Automattic/wp-calypso/assets/27249804/beb84408-baf7-474c-8e16-1b6563b98f9b

📌 ACTIONS

annezazu commented 2 months ago

Noting that this matches this issue in Gutenberg: https://github.com/WordPress/gutenberg/issues/28208

davemart-in commented 3 weeks ago

Closing this out as a duplicate of https://github.com/WordPress/gutenberg/issues/28208