[wp-trac] [WordPress Trac] #38420: API Post status parameter does not accept multiple values
WordPress Trac
noreply at wordpress.org
Thu Oct 20 20:26:47 UTC 2016
#38420: API Post status parameter does not accept multiple values
--------------------------+------------------------------
Reporter: kadamwhite | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by joehoyle):
@kadamwhite if we are going to switch to an array, we need to remove the
`enum` addition here, as the two are not compatible. However, we need need
to then validate them somewhere else.
It's worth mentioning, this would be the best thing for us to support:
{{{#!php
<?php
...
array(
'type' => 'array',
'items' => array(
'enum' => array( 'publish', .... )
)
)
...
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38420#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list