-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Data not saving/loading correctly on the widget screen. #26186
Comments
I think this is because the current code doesn't update the client ID to widget ID mapping after new widgets are created. It only does it when the sidebars are initially loaded. That might be the issue. That's fixed in #26086. I'm curious if you can reproduce that issue on that branch. |
This happened to me after doing some weird things, I am not sure how many of them are related to the problem surfacing, but wanted to document here anyway:
Even though this is a convoluted workflow, it's completely within reasonable things that a user would use, and leads to data loss. I would consider that to be a significant problem. I will try testing against #26086. |
Testing with #26086 and everything seems to save correctly (if slowly), including the workaround ability to insert blocks in between legacy widgets by switching into the customizer. The one thing I noticed was that the first time I tried to save after applying #26086 I got |
Does this still happen? |
I think it's ok to close this now, I haven't noticed it for a while. |
Describe the bug
When saving from the widgets screen, I'm seeing lots of issues. I may have a messed up install, but I thought I'd see if anyone else can reproduce.
Something I noticed when looking at HTTP requests is that often widgets would have the same
id
andnumber
.To reproduce
Steps to reproduce the behavior:
Expected behavior
Data is saved correctly.
The text was updated successfully, but these errors were encountered: