- Timestamp:
- 11/02/2016 03:36:40 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r39055 r39084 1924 1924 1925 1925 case 'post-formats': 1926 $supports_formats = get_theme_support( 'post-formats' ); 1926 1927 $schema['properties']['format'] = array( 1927 1928 'description' => __( 'The format for the object.' ), 1928 1929 'type' => 'string', 1929 'enum' => array_values( get_post_format_slugs()),1930 'enum' => $supports_formats ? array_values( $supports_formats[0] ) : array(), 1930 1931 'context' => array( 'view', 'edit' ), 1931 1932 );
Note: See TracChangeset
for help on using the changeset viewer.