Make WordPress Core

Ticket #41734: 41734.diff

File 41734.diff, 6.5 KB (added by TimothyBlynJacobs, 7 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 e91fce2..13bcc51 100644
    a b class WP_REST_Comments_Controller extends WP_REST_Controller { 
    11401140         */
    11411141        public function get_item_schema() {
    11421142                $schema = array(
    1143                         '$schema'              => 'http://json-schema.org/schema#',
     1143                        '$schema'              => 'http://json-schema.org/draft-04/schema#',
    11441144                        'title'                => 'comment',
    11451145                        'type'                 => 'object',
    11461146                        '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 369cf3c..e2cce55 100644
    a b class WP_REST_Post_Statuses_Controller extends WP_REST_Controller { 
    240240         */
    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',
    246246                        '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 c4571d9..d574ba8 100644
    a b class WP_REST_Post_Types_Controller extends WP_REST_Controller { 
    201201         */
    202202        public function get_item_schema() {
    203203                $schema = array(
    204                         '$schema'              => 'http://json-schema.org/schema#',
     204                        '$schema'              => 'http://json-schema.org/draft-04/schema#',
    205205                        'title'                => 'type',
    206206                        'type'                 => 'object',
    207207                        '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 f9de736..d836d3b 100644
    a b class WP_REST_Posts_Controller extends WP_REST_Controller { 
    16841684        public function get_item_schema() {
    16851685
    16861686                $schema = array(
    1687                         '$schema'    => 'http://json-schema.org/schema#',
     1687                        '$schema'    => 'http://json-schema.org/draft-04/schema#',
    16881688                        'title'      => $this->post_type,
    16891689                        'type'       => 'object',
    16901690                        // 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 fdb01dc..47ae571 100644
    a b class WP_REST_Revisions_Controller extends WP_REST_Controller { 
    451451         */
    452452        public function get_item_schema() {
    453453                $schema = array(
    454                         '$schema'    => 'http://json-schema.org/schema#',
     454                        '$schema'    => 'http://json-schema.org/draft-04/schema#',
    455455                        'title'      => "{$this->parent_post_type}-revision",
    456456                        'type'       => 'object',
    457457                        // 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 17a01b8..1618e35 100644
    a b class WP_REST_Settings_Controller extends WP_REST_Controller { 
    274274                $options = $this->get_registered_options();
    275275
    276276                $schema = array(
    277                         '$schema'    => 'http://json-schema.org/schema#',
     277                        '$schema'    => 'http://json-schema.org/draft-04/schema#',
    278278                        'title'      => 'settings',
    279279                        'type'       => 'object',
    280280                        '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 ea97135..9720a20 100644
    a b class WP_REST_Taxonomies_Controller extends WP_REST_Controller { 
    228228         */
    229229        public function get_item_schema() {
    230230                $schema = array(
    231                         '$schema'              => 'http://json-schema.org/schema#',
     231                        '$schema'              => 'http://json-schema.org/draft-04/schema#',
    232232                        'title'                => 'taxonomy',
    233233                        'type'                 => 'object',
    234234                        '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 0723022..7dfa95a 100644
    a b class WP_REST_Terms_Controller extends WP_REST_Controller { 
    803803         */
    804804        public function get_item_schema() {
    805805                $schema = array(
    806                         '$schema'    => 'http://json-schema.org/schema#',
     806                        '$schema'    => 'http://json-schema.org/draft-04/schema#',
    807807                        'title'      => 'post_tag' === $this->taxonomy ? 'tag' : $this->taxonomy,
    808808                        'type'       => 'object',
    809809                        '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 58046ba..816b40b 100644
    a b class WP_REST_Users_Controller extends WP_REST_Controller { 
    11281128         */
    11291129        public function get_item_schema() {
    11301130                $schema = array(
    1131                         '$schema'    => 'http://json-schema.org/schema#',
     1131                        '$schema'    => 'http://json-schema.org/draft-04/schema#',
    11321132                        'title'      => 'user',
    11331133                        'type'       => 'object',
    11341134                        'properties' => array(