~vcs-imports/wordpress/trunk

Viewing all changes in revision 41540.

  • Committer: whyisjake
  • Date: 2020-06-04 16:43:08 UTC
  • Revision ID: svn-v4:1a063a9b-81f0-0310-95a4-ce76da25c4cd:trunk:47685
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.


Built from https://develop.svn.wordpress.org/trunk@47911

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: