REST API: Switch to stable version of JSON Schema.

Props danielbachhuber.
Fixes #38635.

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


git-svn-id: http://core.svn.wordpress.org/trunk@39048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Joe Hoyle 2016-11-03 02:22:29 +00:00
parent dcb12c35cf
commit d544c6ddd0
10 changed files with 10 additions and 10 deletions

View File

@ -1088,7 +1088,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
*/
public function get_item_schema() {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'$schema' => 'http://json-schema.org/schema#',
'title' => 'comment',
'type' => 'object',
'properties' => array(

View File

@ -243,7 +243,7 @@ class WP_REST_Post_Statuses_Controller extends WP_REST_Controller {
*/
public function get_item_schema() {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'$schema' => 'http://json-schema.org/schema#',
'title' => 'status',
'type' => 'object',
'properties' => array(

View File

@ -199,7 +199,7 @@ class WP_REST_Post_Types_Controller extends WP_REST_Controller {
*/
public function get_item_schema() {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'$schema' => 'http://json-schema.org/schema#',
'title' => 'type',
'type' => 'object',
'properties' => array(

View File

@ -1655,7 +1655,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
public function get_item_schema() {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'$schema' => 'http://json-schema.org/schema#',
'title' => $this->post_type,
'type' => 'object',
// Base properties for every Post.

View File

@ -376,7 +376,7 @@ class WP_REST_Revisions_Controller extends WP_REST_Controller {
*/
public function get_item_schema() {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'$schema' => 'http://json-schema.org/schema#',
'title' => "{$this->parent_post_type}-revision",
'type' => 'object',
// Base properties for every Revision.

View File

@ -282,7 +282,7 @@ class WP_REST_Settings_Controller extends WP_REST_Controller {
$options = $this->get_registered_options();
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'$schema' => 'http://json-schema.org/schema#',
'title' => 'settings',
'type' => 'object',
'properties' => array(),

View File

@ -230,7 +230,7 @@ class WP_REST_Taxonomies_Controller extends WP_REST_Controller {
*/
public function get_item_schema() {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'$schema' => 'http://json-schema.org/schema#',
'title' => 'taxonomy',
'type' => 'object',
'properties' => array(

View File

@ -797,7 +797,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
*/
public function get_item_schema() {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'$schema' => 'http://json-schema.org/schema#',
'title' => 'post_tag' === $this->taxonomy ? 'tag' : $this->taxonomy,
'type' => 'object',
'properties' => array(

View File

@ -995,7 +995,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
*/
public function get_item_schema() {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'$schema' => 'http://json-schema.org/schema#',
'title' => 'user',
'type' => 'object',
'properties' => array(

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-beta1-39105';
$wp_version = '4.7-beta1-39106';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.