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

WordPress Trac noreply at wordpress.org
Wed Mar 1 00:35:39 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:
------------------------------------------+--------------------
Changes (by jnylen0):

 * keywords:  needs-patch => needs-patch needs-unit-tests


Comment:

 This is pretty different than post formats - the current theme may not
 support all formats, but there is still a finite list of possibly
 supported formats.

 If we apply the same logic for templates, we are essentially saying that
 clients can set any arbitrary data (or just an arbitrary PHP filename) in
 this field, which doesn't seem right.  Instead, I think the change we
 should make here is to enable setting a post to the same `template` value
 that it currently has - this should be a no-op even if the current theme
 doesn't support that value.

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


More information about the wp-trac mailing list