Make WordPress Core

Changeset 39106


Ignore:
Timestamp:
11/03/2016 02:21:48 AM (8 years ago)
Author:
joehoyle
Message:

REST API: Switch to stable version of JSON Schema.

Props danielbachhuber.
Fixes #38635.

Location:
trunk/src/wp-includes/rest-api/endpoints
Files:
9 edited

Legend:

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

    r39105 r39106  
    10891089    public function get_item_schema() {
    10901090        $schema = array(
    1091             '$schema'              => 'http://json-schema.org/draft-04/schema#',
     1091            '$schema'              => 'http://json-schema.org/schema#',
    10921092            'title'                => 'comment',
    10931093            'type'                 => 'object',
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php

    r39024 r39106  
    244244    public function get_item_schema() {
    245245        $schema = array(
    246             '$schema'              => 'http://json-schema.org/draft-04/schema#',
     246            '$schema'              => 'http://json-schema.org/schema#',
    247247            'title'                => 'status',
    248248            'type'                 => 'object',
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php

    r39097 r39106  
    200200    public function get_item_schema() {
    201201        $schema = array(
    202             '$schema'              => 'http://json-schema.org/draft-04/schema#',
     202            '$schema'              => 'http://json-schema.org/schema#',
    203203            'title'                => 'type',
    204204            'type'                 => 'object',
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r39105 r39106  
    16561656
    16571657        $schema = array(
    1658             '$schema'    => 'http://json-schema.org/draft-04/schema#',
     1658            '$schema'    => 'http://json-schema.org/schema#',
    16591659            'title'      => $this->post_type,
    16601660            'type'       => 'object',
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php

    r39028 r39106  
    377377    public function get_item_schema() {
    378378        $schema = array(
    379             '$schema'    => 'http://json-schema.org/draft-04/schema#',
     379            '$schema'    => 'http://json-schema.org/schema#',
    380380            'title'      => "{$this->parent_post_type}-revision",
    381381            'type'       => 'object',
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php

    r39058 r39106  
    283283
    284284        $schema = array(
    285             '$schema'    => 'http://json-schema.org/draft-04/schema#',
     285            '$schema'    => 'http://json-schema.org/schema#',
    286286            'title'      => 'settings',
    287287            'type'       => 'object',
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php

    r39105 r39106  
    231231    public function get_item_schema() {
    232232        $schema = array(
    233             '$schema'              => 'http://json-schema.org/draft-04/schema#',
     233            '$schema'              => 'http://json-schema.org/schema#',
    234234            'title'                => 'taxonomy',
    235235            'type'                 => 'object',
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

    r39105 r39106  
    798798    public function get_item_schema() {
    799799        $schema = array(
    800             '$schema'    => 'http://json-schema.org/draft-04/schema#',
     800            '$schema'    => 'http://json-schema.org/schema#',
    801801            'title'      => 'post_tag' === $this->taxonomy ? 'tag' : $this->taxonomy,
    802802            'type'       => 'object',
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r39105 r39106  
    996996    public function get_item_schema() {
    997997        $schema = array(
    998             '$schema'    => 'http://json-schema.org/draft-04/schema#',
     998            '$schema'    => 'http://json-schema.org/schema#',
    999999            'title'      => 'user',
    10001000            'type'       => 'object',
Note: See TracChangeset for help on using the changeset viewer.