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

WordPress Trac noreply at wordpress.org
Tue Feb 28 23:19:19 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           |   Keywords:  needs-patch
  Focuses:                   |
-----------------------------+-------------------------
 In r40120, it became possible for a client to set `format=>aside` on a
 post, even when when the theme doesn't support `aside` as a post format.

 Under this same logic, it should be possible for a client to set `template
 =>my-file.php`, even when `my-file.php` isn't a file in the theme.

 The current behavior is that it's not possible for a client to set
 `template` to an arbitrary file name (values are validated against an
 enum).

 Related #39232

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


More information about the wp-trac mailing list