Ticket #38610: 38610.diff
File 38610.diff, 701 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
1935 1935 $schema['properties']['format'] = array( 1936 1936 'description' => __( 'The format for the object.' ), 1937 1937 'type' => 'string', 1938 'enum' => array_values( get_ post_format_slugs() ),1938 'enum' => array_values( get_theme_support( 'post-formats' ) ), 1939 1939 'context' => array( 'view', 'edit' ), 1940 1940 ); 1941 1941 break;