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 afd6489..9f85002 100644
a
|
b
|
class WP_REST_Comments_Controller extends WP_REST_Controller { |
1158 | 1158 | 'description' => __( 'HTML content for the object, transformed for display.' ), |
1159 | 1159 | 'type' => 'string', |
1160 | 1160 | 'context' => array( 'view', 'edit', 'embed' ), |
| 1161 | 'readonly' => true, |
1161 | 1162 | ), |
1162 | 1163 | ), |
1163 | 1164 | ), |
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 5394d16..4c6cdd3 100644
a
|
b
|
class WP_REST_Post_Types_Controller extends WP_REST_Controller { |
205 | 205 | 'properties' => array( |
206 | 206 | 'capabilities' => array( |
207 | 207 | 'description' => __( 'All capabilities used by the resource.' ), |
208 | | 'type' => 'array', |
209 | | 'items' => array( |
210 | | 'type' => 'string', |
211 | | ), |
| 208 | 'type' => 'object', |
212 | 209 | 'context' => array( 'edit' ), |
213 | 210 | 'readonly' => true, |
214 | 211 | ), |
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 11ae1ec..4f27a8a 100644
a
|
b
|
class WP_REST_Posts_Controller extends WP_REST_Controller { |
86 | 86 | 'context' => $this->get_context_param( array( 'default' => 'view' ) ), |
87 | 87 | 'password' => array( |
88 | 88 | 'description' => __( 'The password for the post if it is password protected.' ), |
| 89 | 'type' => 'string', |
89 | 90 | ), |
90 | 91 | ), |
91 | 92 | ), |
… |
… |
class WP_REST_Posts_Controller extends WP_REST_Controller { |
2068 | 2069 | $params['slug'] = array( |
2069 | 2070 | 'description' => __( 'Limit result set to posts with one or more specific slugs.' ), |
2070 | 2071 | 'type' => 'array', |
| 2072 | 'items' => array( |
| 2073 | 'type' => 'string', |
| 2074 | ), |
2071 | 2075 | 'sanitize_callback' => 'wp_parse_slug_list', |
2072 | 2076 | ); |
2073 | 2077 | |
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 11c306c..b63d66c 100644
a
|
b
|
class WP_REST_Taxonomies_Controller extends WP_REST_Controller { |
236 | 236 | 'properties' => array( |
237 | 237 | 'capabilities' => array( |
238 | 238 | 'description' => __( 'All capabilities used by the resource.' ), |
239 | | 'type' => 'array', |
| 239 | 'type' => 'object', |
240 | 240 | 'context' => array( 'edit' ), |
241 | 241 | 'readonly' => true, |
242 | 242 | ), |
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 0b49ec8..3481f0c 100644
a
|
b
|
class WP_REST_Users_Controller extends WP_REST_Controller { |
89 | 89 | 'default' => false, |
90 | 90 | 'description' => __( 'Required to be true, as resource does not support trashing.' ), |
91 | 91 | ), |
92 | | 'reassign' => array(), |
| 92 | 'reassign' => array( |
| 93 | 'type' => 'integer', |
| 94 | 'description' => __( 'Reassign the deleted user\'s posts and links to this user ID.' ), |
| 95 | ), |
93 | 96 | ), |
94 | 97 | ), |
95 | 98 | 'schema' => array( $this, 'get_public_item_schema' ), |
… |
… |
class WP_REST_Users_Controller extends WP_REST_Controller { |
100 | 103 | 'methods' => WP_REST_Server::READABLE, |
101 | 104 | 'callback' => array( $this, 'get_current_item' ), |
102 | 105 | 'args' => array( |
103 | | 'context' => array(), |
| 106 | 'context' => $this->get_context_param( array( 'default' => 'view' ) ), |
104 | 107 | ), |
105 | 108 | ), |
106 | 109 | array( |
… |
… |
class WP_REST_Users_Controller extends WP_REST_Controller { |
119 | 122 | 'default' => false, |
120 | 123 | 'description' => __( 'Required to be true, as resource does not support trashing.' ), |
121 | 124 | ), |
122 | | 'reassign' => array(), |
| 125 | 'reassign' => array( |
| 126 | 'type' => 'integer', |
| 127 | 'description' => __( 'Reassign the deleted user\'s posts and links to this user ID.' ), |
| 128 | ), |
123 | 129 | ), |
124 | 130 | ), |
125 | 131 | 'schema' => array( $this, 'get_public_item_schema' ), |