Skip to content
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

Rename the custom template all content in template will remove #90379

Open
Mfarroq1 opened this issue May 7, 2024 · 5 comments
Open

Rename the custom template all content in template will remove #90379

Mfarroq1 opened this issue May 7, 2024 · 5 comments
Labels
[Feature] Full Site Editor The site editor. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. Needs triage Ticket needs to be triaged [Pri] Low [Status] Needs Author Reply [Type] Bug

Comments

@Mfarroq1
Copy link

Mfarroq1 commented May 7, 2024

Quick summary

If we use the full site editor to create a custom template and then rename it, all the content within the template gets automatically removed. I've been able to replicate this issue with an active Premium plan.

Steps to reproduce

  1. Enable a theme that supports the Full Site Editor feature.
  2. Create a custom template, add content, and save the changes.
  3. Upon renaming the template, all content is automatically removed.
  4. Refresh the page if you don't see any change.

What you expected to happen

After renaming the template, the content should remain unchanged.

What actually happened

The content is removed automatically. here is the video recording to show the exact issue. https://somup.com/cZhi6P5q64

Impact

One

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

@Mfarroq1 Mfarroq1 added [Type] Bug Needs triage Ticket needs to be triaged labels May 7, 2024
@Mfarroq1
Copy link
Author

Mfarroq1 commented May 7, 2024

I have suggested the user to copy the content before renaming the template and after that paste the content again as a workaround.

zen-8154286

@liviopv
Copy link

liviopv commented May 10, 2024

📌 REPRODUCTION RESULTS

  • Tested on Simple – Could Not Replicate
  • Tested on Atomic – Could Not Replicate

📌 FINDINGS/SCREENSHOTS/VIDEO
I wasn't able to replicate on Simple or Atomic using Twenty Twenty Four:

CleanShot.2024-05-10.at.15.42.14.mp4
CleanShot.2024-05-10.at.15.45.42.mp4

I also tested using the user's theme, but I couldn't replicate either.

📌 ACTIONS

  • Requested author feedback

📌 Message to Author
@Mfarroq1 can you look at the videos above and let me know what I am missing?

@liviopv liviopv added [Status] Needs Author Reply [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Full Site Editor The site editor. labels May 10, 2024
@kthxhi
Copy link

kthxhi commented May 10, 2024

liviopv:

Not OP, but I'm experiencing the same bug (Bitácora theme fwiw).

The bug doesn't occur when I replicate your steps, because it seems to only occur when renaming existing templates. Freshly created templates can be renamed without issue.

For existing templates, it doesn't matter if I edit from the templates list page (Appearance➞ Editor➞ Templates➞ list "⋮"➞ Rename) or from the Editor like you show. It erases everything. When I rename within the Editor, the 'Choose A Pattern' popup window instantly opens.

@liviopv
Copy link

liviopv commented May 11, 2024

Thanks @kthxhi

When you say "because it seems to only occur when renaming existing templates", what are you referring to as "existing templates"? Templates that are bundled with the theme? Or custom templates that have been created for a little while?

@kthxhi
Copy link

kthxhi commented May 11, 2024

@liviopv,

A freshly created template (opened in the block editor for the first time) can be renamed within the editor just fine.

But once I've saved that template and exited the block editor, any attempts to rename it will result in a total loss of content.

My theme's stock templates cannot be renamed. I'm not sure if that's true of all themes. LMK if you need more info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Full Site Editor The site editor. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. Needs triage Ticket needs to be triaged [Pri] Low [Status] Needs Author Reply [Type] Bug
Projects
Development

No branches or pull requests

3 participants