Make WordPress Core

Ticket #38610: 38610.diff

File 38610.diff, 701 bytes (added by rmccue, 8 years ago)
  • src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

     
    19351935                                        $schema['properties']['format'] = array(
    19361936                                                'description' => __( 'The format for the object.' ),
    19371937                                                'type'        => 'string',
    1938                                                 'enum'        => array_values( get_post_format_slugs() ),
     1938                                                'enum'        => array_values( get_theme_support( 'post-formats' ) ),
    19391939                                                'context'     => array( 'view', 'edit' ),
    19401940                                        );
    19411941                                        break;