Make WordPress Core


Ignore:
Timestamp:
10/04/2017 02:51:03 PM (8 years ago)
Author:
kadamwhite
Message:

REST API: Specify specific json-schema version.

Explicitly specifies that the REST API uses JSON Schema draft-04,
as JSON Schema has deprecated versionless schema URIs and recommends
the use of a specific draft version.

Props @TimothyBlynJacobs
Fixes #41734

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php

    r41162 r41731  
    241241    public function get_item_schema() {
    242242        $schema = array(
    243             '$schema'              => 'http://json-schema.org/schema#',
     243            '$schema'              => 'http://json-schema.org/draft-04/schema#',
    244244            'title'                => 'status',
    245245            'type'                 => 'object',
Note: See TracChangeset for help on using the changeset viewer.