[wp-trac] [WordPress Trac] #38786: register_meta()'s show_in_rest not mapping to specific fields
WordPress Trac
noreply at wordpress.org
Fri Nov 18 22:10:29 UTC 2016
#38786: register_meta()'s show_in_rest not mapping to specific fields
--------------------------------------+-----------------------
Reporter: garubi | Owner: joehoyle
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+-----------------------
Comment (by joehoyle):
I added a fresh patch with the implementation to be made a lot more like
the Settings endpoint, whereby the arrays are keyed by meta_key, and
`$args['name']` is the "visual" name in the REST API. I took the tests
from @tharsheblows's patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38786#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list