-
Notifications
You must be signed in to change notification settings - Fork 805
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
Copy Post: Editor seems to revert title and content changes when saving #40647
Comments
Support References This comment is automatically generated. Please do not edit it.
|
I have a user reporting something similar - Even when they make changes to the post titles in the editor - they revert. |
Plenty of examples in this Forum thread too: And it appears it effects the content of the post/page as well. Not only the title. |
📌 REPRODUCTION RESULTS
📌 ACTIONS
|
@youknowriad This seems to have been caused by WordPress/gutenberg#62304, but I don't quite understand the concept of "editor rendering mode" and how it could impact the Copy Post feature. Do you think you could take a look? For reference, we populate the editor with data from the original post in this class:
This still works well, and folks can still edit the original content just like before, but upon saving, the new data gets saved properly but the post editor reverts to the original state in which it was open, with the original data, even though in the db we now have updated data. Do you have any idea about what in that PR could have caused this? Thank you! |
Noting I bumped into a case of this that I would not have identified as this bug had I not been aware of it: |
Also noted here: 9177509-zd-a8c The user shared these steps:
I'm not sure about the third point above, so I'm asking for more details. |
@jeherve, do you have a minimal code example to reproduce the bug? I'm working on some follow-ups for #62304 and can also look into this. |
@Mamaduka You could upload this little plugin to a site using Gutenberg, and then go to the Posts screen and hit "Copy" in the actions links when hovering a published post. In the new post editor that opens, make a few changes to the copied post (change the title for example) and then hit "Save draft". You'll see your changes disappear, even though they were properly saved in the db. Get back to the Posts list, and you'll see the new draft saved properly. Let me know if that helps! |
Another report here: 9196053-zd-a8c |
Another report in 9204899-zen -- the user would like an update, but we did find a temporary workaround: After the first revert behavior, refresh the post in the editor (click "Reload" without saving changes, if the brower prompts you) -- the changes should reappear. Then, continue to make new changes without using the “restore a backup” prompt, and the revert behavior should stop moving forward. There is an internal video of this same behavior and workaround -- p1734902819761479-slack-C02FMH4G8 |
Another case here: |
Thanks for the ping @jeherve and sorry for the delay (AFK). So the PR itself indeed introduced the bug but it was IMO a secondary change that shouldn't have been done in that PR. So I'm pushing a fix here. I would appreciate some testing. WordPress/gutenberg#68273 |
user copies post, renames and saves draft. Title reverts. 9206492-zen |
Another case here: 9235851-zd-a8c |
9240262-zd-a8c |
Also reported here: 9242094-zd-a8c (from duplicate bug report). |
Another report here: 9243440-zd-a8c Another workaround that worked for me:
|
Warning This should be fixed once the next version of the Gutenberg plugin (20.0) is released and then updated on WordPress.com. The release is currently planned for Thursday, January 9th. |
Another case here 9287475-zd-a8c |
another report in 9300637-zd-a8c |
Quick summary
There's a confusing user experience issue when copying posts in the WordPress dashboard. When a user copies a post and modifies the title of the copy, the interface appears to revert to the original title, making it seem like the changes weren't saved. However, the changes are actually being saved to a new draft post with a different post ID. This creates confusion because while the URL shows an updated post ID, the visible title doesn't reflect the changes made, leading users to question whether their modifications were preserved.
Here is a video in which I demonstrate the issue using a test WordPress.com site on a free plan:
20241215.Copy.post.UX.issue-optimized.mp4
Steps to reproduce
What you expected to happen
When copying a post, the copied post with changes that are made to the copy should be preserved in the editor window that the user sees.
What actually happened
When a user copies a post and modifies the title of the copy, the interface appears to revert to the original title, making it seem like the changes weren't saved. However, the changes are actually being saved to a new draft post with a different post ID.
Impact
Most (> 50%)
Available workarounds?
No but the platform is still usable
If the above answer is "Yes...", outline the workaround.
No response
Platform (Simple and/or Atomic)
Simple
Logs or notes
This was reported in 9177618-zen and reproduced in a test site on a free plan.
This issue persists irrespective of browser used. Our customer experienced this issue using Brave, Microsoft Edge and Firefox. I reproduced the issue using Microsoft Edge on macOS 15.2
The text was updated successfully, but these errors were encountered: