-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Dispatching editPost action does not save/update existing meta value #12544
Comments
Could you point me on how to zip the production version of the branch so I can test? |
You can run This might take a while, so I went ahead and built a ZIP for you: gutenberg.zip |
Thanks, I tested with the zip you sent and the behaviour is the same. |
Seems like it works right, not sure if the issue was related to the server. I'll close the issue and comment again if I figure out what was causing the problem. Thanks. |
I noticed that when custom fields are displayed they overwrite dispatched meta value. Tested on WordPress 5.2.2 |
Disabling the custom fields from been shown solves this problem. |
Describe the bug
Register the following meta:
In a new post editor page, try to update the meta from the console:
Then publish the post. This will save the meta with no problem (notice the post was new so there was no value assigned to the meta key).
Refresh the just published post editor page from the browser and call editPost again with a different value:
Publish the changes.
The meta does not update and still has the previous value.
Thanks.
Version
The text was updated successfully, but these errors were encountered: