You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Repository navigation
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
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.
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.