[wp-trac] [WordPress Trac] #38553: Posts Controller handle_terms throws warning
WordPress Trac
noreply at wordpress.org
Sun Oct 30 22:29:06 UTC 2016
#38553: Posts Controller handle_terms throws warning
--------------------------------------+--------------------
Reporter: timmydcrawford | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------
Comment (by jnylen0):
> For taxonomy term settings for a post they are exposed in the discovery
under the `schema` portion.
Thanks for pointing this out. I think there is not much to do regarding
documentation, then, unless we want to indicate that a value can be either
an array or a comma-delimited string. I'm not sure if this is something
we would want to do or if it is something that JSON Schema even supports.
I looked through the other array parameters in all endpoints and here are
the other ones that do not support comma-separated strings:
- Taxonomy "exclude" parameter immediately below the one already patched
in `fix-terms-3.diff` (should be addressed in this ticket)
- User `roles` parameter (#38577)
Finally I think we should support filtering post slugs this way as well
(#38579).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38553#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list