[wp-trac] [WordPress Trac] #50876: REST API: Extract get_endpoint_args_for_item_schema to standalone function
WordPress Trac
noreply at wordpress.org
Mon Sep 7 02:36:08 UTC 2020
#50876: REST API: Extract get_endpoint_args_for_item_schema to standalone function
-------------------------------------------------+-------------------------
Reporter: TimothyBlynJacobs | Owner:
| TimothyBlynJacobs
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.6
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):
* owner: (none) => TimothyBlynJacobs
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48951" 48951]:
{{{
#!CommitTicketReference repository="" revision="48951"
REST API: Extract
`WP_REST_Controller::get_endpoint_args_for_item_schema()` to a standalone
function.
This method is useful whenever a JSON Schema needs to be converted to a
format suitable for argument validation with `WP_REST_Request`. Moving the
logic into a standalone function allows developers to use it outside of
the `WP_REST_Controller` context.
Props pentatonicfunk.
Fixes #50876.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50876#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list