[wp-trac] [WordPress Trac] #39996: Grant clients more liberty in setting 'template' attribute

WordPress Trac noreply at wordpress.org
Thu Mar 23 07:47:29 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 swissspidy):

 > So this looks like a pretty straightforward change to me, only touching
 `WP_REST_Posts_Controller::handle_template`. @swissspidy do you agree or
 is there something I'm missing here?

 IIRC this fails much earlier in the schema validation because of the enum.
 It never gets to this method.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39996#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list