[wp-trac] [WordPress Trac] #41605: REST API: Fixed schema for the Page post type is incorrect
WordPress Trac
noreply at wordpress.org
Tue Aug 15 23:31:08 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
Component: Posts, Post Types | Review
Severity: normal | Version:
Keywords: has-patch has-unit-tests dev- | Resolution:
feedback | Focuses: rest-api
-------------------------------------------------+-------------------------
Comment (by danielbachhuber):
> 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.
The idea here was that core post types would always have a fixed schema:
* https://github.com/WP-API/WP-
API/commit/a84f48adead9fa40d5cde949034da5b7a2635403
* https://github.com/WP-API/WP-API/pull/844#issuecomment-74586279
I suspect the original conversation is in Slack somewhere...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41605#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list