diff options
author | Timothy Jacobs <timothyblynjacobs@git.wordpress.org> | 2020-09-07 02:35:52 +0000 |
---|---|---|
committer | Timothy Jacobs <timothyblynjacobs@git.wordpress.org> | 2020-09-07 02:35:52 +0000 |
commit | 84d524e18964e928ba69d02b248b06fab524a8bf (patch) | |
tree | ece8e011fa3ec8e2c181894049b4e75543bb5b48 /tests/phpunit/includes/phpunit7 | |
parent | 83f23c4c4f392b0ee1739bbb33f15c71fadfe071 (diff) | |
download | wordpress-84d524e18964e928ba69d02b248b06fab524a8bf.tar.gz wordpress-84d524e18964e928ba69d02b248b06fab524a8bf.zip |
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@48951 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tests/phpunit/includes/phpunit7')
0 files changed, 0 insertions, 0 deletions