[wp-trac] [WordPress Trac] #50301: Missing args properties when WP_REST_Controller::get_endpoint_args_for_item_schema being used
WordPress Trac
noreply at wordpress.org
Thu Jun 4 16:42:01 UTC 2020
#50301: Missing args properties when
WP_REST_Controller::get_endpoint_args_for_item_schema being used
-------------------------------------------------+-------------------------
Reporter: pentatonicfunk | Owner: whyisjake
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch has-unit- | Focuses: rest-api
tests |
-------------------------------------------------+-------------------------
Changes (by whyisjake):
* owner: (none) => whyisjake
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"47911" 47911]:
{{{
#!CommitTicketReference repository="" revision="47911"
REST API: Ensure that all properties of
`get_endpoint_args_for_item_schema` are listed.
* Add new var $valid_schema_properties to match
rest_validate_value_from_schema()
* Unit test to ensure all valid properties exists, and non-valid
properties are ignored
Fixes: #50301.
Props: pentatonicfunk, TimothyBlynJacobs.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50301#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list