Changeset 39647 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
- Timestamp:
- 12/29/2016 05:27:37 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
r39342 r39647 150 150 $taxonomies = wp_list_pluck( $taxonomies, 'name' ); 151 151 $base = ! empty( $post_type->rest_base ) ? $post_type->rest_base : $post_type->name; 152 $supports = get_all_post_type_supports( $post_type->name ); 153 152 154 $data = array( 153 155 'capabilities' => $post_type->cap, … … 157 159 'name' => $post_type->label, 158 160 'slug' => $post_type->name, 161 'supports' => $supports, 159 162 'taxonomies' => array_values( $taxonomies ), 160 163 'rest_base' => $base, … … 240 243 'readonly' => true, 241 244 ), 245 'supports' => array( 246 'description' => __( 'All features, supported by the post type.' ), 247 'type' => 'object', 248 'context' => array( 'edit' ), 249 'readonly' => true, 250 ), 242 251 'taxonomies' => array( 243 252 'description' => __( 'Taxonomies associated with post type.' ),
Note: See TracChangeset
for help on using the changeset viewer.