- Timestamp:
- 06/04/2024 10:21:11 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r58065 r58326 1998 1998 $data['generated_slug'] = $sample_permalink[1]; 1999 1999 } 2000 } 2001 2002 if ( rest_is_field_included( 'class_list', $fields ) ) { 2003 $data['class_list'] = get_post_class( array(), $post->ID ); 2000 2004 } 2001 2005 } … … 2354 2358 'readonly' => true, 2355 2359 ); 2360 2361 $schema['properties']['class_list'] = array( 2362 'description' => __( 'An array of the class names for the post container element.' ), 2363 'type' => 'array', 2364 'context' => array( 'view', 'edit' ), 2365 'readonly' => true, 2366 'items' => array( 2367 'type' => 'string', 2368 ), 2369 ); 2356 2370 } 2357 2371
Note: See TracChangeset
for help on using the changeset viewer.