Changeset 43007 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
- Timestamp:
- 04/27/2018 03:05:40 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
r42343 r43007 160 160 'description' => $post_type->description, 161 161 'hierarchical' => $post_type->hierarchical, 162 'viewable' => is_post_type_viewable( $post_type ), 162 163 'labels' => $post_type->labels, 163 164 'name' => $post_type->label, … … 230 231 'readonly' => true, 231 232 ), 233 'viewable' => array( 234 'description' => __( 'Whether or not the post type can be viewed.' ), 235 'type' => 'boolean', 236 'context' => array( 'edit' ), 237 'readonly' => true, 238 ), 232 239 'labels' => array( 233 240 'description' => __( 'Human-readable labels for the post type for various contexts.' ),
Note: See TracChangeset
for help on using the changeset viewer.