Changeset 43038 for branches/4.9/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
- Timestamp:
- 04/30/2018 04:30:23 AM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
r41731 r43038 156 156 'description' => $post_type->description, 157 157 'hierarchical' => $post_type->hierarchical, 158 'viewable' => is_post_type_viewable( $post_type ), 158 159 'labels' => $post_type->labels, 159 160 'name' => $post_type->label, … … 224 225 'readonly' => true, 225 226 ), 227 'viewable' => array( 228 'description' => __( 'Whether or not the post type can be viewed.' ), 229 'type' => 'boolean', 230 'context' => array( 'edit' ), 231 'readonly' => true, 232 ), 226 233 'labels' => array( 227 234 'description' => __( 'Human-readable labels for the post type for various contexts.' ),
Note: See TracChangeset
for help on using the changeset viewer.