[wp-trac] [WordPress Trac] #40408: REST API (v2) Does not handle metadata
WordPress Trac
noreply at wordpress.org
Mon Oct 2 18:29:56 UTC 2017
#40408: REST API (v2) Does not handle metadata
--------------------------+-----------------------------
Reporter: teamcoltra | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: WordPress.org
Component: REST API | Version: 4.7.3
Severity: normal | Resolution:
Keywords: needs-codex | Focuses: docs, rest-api
--------------------------+-----------------------------
Comment (by sgarza):
As @pissio noted declaring `show_in_rest => true` only works as expected
on the default post type, but not for custom post types. After playing
with the source code it seems like the fix for this is easy and would only
require one line to change for the functionality of the default REST
controller to work for all post types.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40408#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list