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 act on errors returned from register_rest_field callbacks #2548

Description

@27pchrisl

Currently the REST API calls callbacks registered with register_rest_field, but does not check their return values. If the callback wishes to signal that an error has occurred it should be able to return a WP_Error, and have the API return that error to the requesting client.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions