WordPress.org

Make WordPress Core

Ticket #38635: 38635.1.diff

File 38635.1.diff, 6.5 KB (added by danielbachhuber, 4 years ago)
  • src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

    diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
    index 3454dc1..1b20290 100644
    a b class WP_REST_Comments_Controller extends WP_REST_Controller { 
    10761076         */
    10771077        public function get_item_schema() {
    10781078                $schema = array(
    1079                         '$schema'              => 'http://json-schema.org/draft-04/schema#',
     1079                        '$schema'              => 'http://json-schema.org/schema#',
    10801080                        'title'                => 'comment',
    10811081                        'type'                 => 'object',
    10821082                        'properties'           => array(
  • src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php

    diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
    index 13ffee0..75f9d30 100644
    a b class WP_REST_Post_Statuses_Controller extends WP_REST_Controller { 
    243243         */
    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',
    249249                        'properties'           => array(
  • src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php

    diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
    index 358bad8..534aa8e 100644
    a b class WP_REST_Post_Types_Controller extends WP_REST_Controller { 
    199199         */
    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',
    205205                        'properties'           => array(
  • src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
    index 0122f9a..295cfa1 100644
    a b class WP_REST_Posts_Controller extends WP_REST_Controller { 
    16551655        public function get_item_schema() {
    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',
    16611661                        // Base properties for every Post.
  • src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php

    diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
    index 9ecd0ad..4c21d01 100644
    a b class WP_REST_Revisions_Controller extends WP_REST_Controller { 
    376376         */
    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',
    382382                        // Base properties for every Revision.
  • src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php

    diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
    index 5d16fb3..3bf7431 100644
    a b class WP_REST_Settings_Controller extends WP_REST_Controller { 
    282282                $options = $this->get_registered_options();
    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',
    288288                        'properties' => array(),
  • src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php

    diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php
    index 98a5e21..af3e9fb 100644
    a b class WP_REST_Taxonomies_Controller extends WP_REST_Controller { 
    230230         */
    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',
    236236                        'properties'           => array(
  • src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

    diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
    index ceaa26b..51d6a22 100644
    a b class WP_REST_Terms_Controller extends WP_REST_Controller { 
    797797         */
    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',
    803803                        'properties' => array(
  • src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
    index bb3737d..e649d43 100644
    a b class WP_REST_Users_Controller extends WP_REST_Controller { 
    995995         */
    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',
    10011001                        'properties' => array(