Make WordPress Core

Ticket #39466: 39466.patch

File 39466.patch, 718 bytes (added by dhanendran, 7 years ago)

Fix for this ticket

  • src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

     
    17241724                                        'description' => __( 'A named status for the object.' ),
    17251725                                        'type'        => 'string',
    17261726                                        'enum'        => array_keys( get_post_stati( array( 'internal' => false ) ) ),
    1727                                         'context'     => array( 'edit' ),
     1727                                        'context'     => array( 'view', 'edit' ),
    17281728                                ),
    17291729                                'type'            => array(
    17301730                                        'description' => __( 'Type of Post for the object.' ),