Changeset 54273 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
- Timestamp:
- 09/21/2022 12:27:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
r54269 r54273 197 197 if ( rest_is_field_included( 'hierarchical', $fields ) ) { 198 198 $data['hierarchical'] = $post_type->hierarchical; 199 } 200 201 if ( rest_is_field_included( 'hierarchical', $fields ) ) { 202 $data['has_archive'] = $post_type->has_archive; 199 203 } 200 204 … … 354 358 'readonly' => true, 355 359 ), 360 'has_archive' => array( 361 'description' => __( 'If the value is a string, the value will be used as the archive slug. If the value is false the post type has no archive.' ), 362 'type' => array( 'string', 'boolean' ), 363 'context' => array( 'view', 'edit' ), 364 'readonly' => true, 365 ), 356 366 'taxonomies' => array( 357 367 'description' => __( 'Taxonomies associated with post type.' ),
Note: See TracChangeset
for help on using the changeset viewer.