Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

API should error when attempting to update a registered meta field holding an invalid value #2838

Description

@kadamwhite

Based on discussion following #2765:

Registering a meta field defines the data type that field should contain, but there are ways outside of the API's purview that a post could come to hold an invalid value in that meta field, such as a serialized object, which does not match the registered type. If the API tries to update the value of a meta object and the API discovers that an invalid type of data is being stored in that field, it should return an error rather than replacing the value of that field.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions