[wp-trac] [WordPress Trac] #39996: Grant clients more liberty in setting 'template' attribute
WordPress Trac
noreply at wordpress.org
Wed Apr 5 23:29:20 UTC 2017
#39996: Grant clients more liberty in setting 'template' attribute
------------------------------------------+--------------------
Reporter: danielbachhuber | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.4
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+--------------------
Comment (by jnylen0):
Replying to [comment:7 swissspidy]:
> IIRC this fails much earlier in the schema validation because of the
enum. It never gets to this method.
We can solve this with a similar approach to e.g. `check_username` in
[attachment:38739.diff:ticket:38739 38739.diff]. I'll get a patch posted
here soon.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39996#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list