-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Unrelated meta data gets saved with default value #6505
Copy link
Copy link
Closed
Labels
REST API InteractionRelated to REST APIRelated to REST API[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Milestone
Metadata
Metadata
Assignees
Labels
REST API InteractionRelated to REST APIRelated to REST API[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.
Issue Overview
If you have a block which stores its data in post meta and also registered other post meta for REST API usage, the other post meta gets also updated with the default value.
Steps to Reproduce (for bugs)
Expected Behavior
Only changed meta data should get saved.
Possible Solution
I'm not sure yet if that's a limitation of the REST API and/or if Gutenberg can enhance that behaviour.
Related Issues
Todos