[wp-trac] [WordPress Trac] #41605: REST API: Fixed schema for the Page post type is incorrect
WordPress Trac
noreply at wordpress.org
Thu Aug 10 17:19:44 UTC 2017
#41605: REST API: Fixed schema for the Page post type is incorrect
-------------------------------+------------------------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: rest-api |
-------------------------------+------------------------------------------
The fixed schema for the `page` post type incorrectly states that it
supports the `excerpt` field. It does not.
Ref: https://github.com/WordPress/wordpress-
develop/blob/d570de32ca3a5f623bf26d70dfc55141c339073d/src/wp-includes
/rest-api/endpoints/class-wp-rest-posts-controller.php#L1801-L1831
In addition, I'm not sure why the schemas for the Post, Page, and
Attachment post types are hard-coded instead of relying on post type
support.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41605>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list