[wp-trac] [WordPress Trac] #39996: Allow passing existing template value for posts, even when template does not exist

WordPress Trac noreply at wordpress.org
Mon Oct 23 22:10:50 UTC 2017


#39996: Allow passing existing template value for posts, even when template does
not exist
---------------------------------------------+--------------------------
 Reporter:  danielbachhuber                  |       Owner:  westonruter
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.9
Component:  REST API                         |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-unit-tests has-patch commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by westonruter):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41979"]:
 {{{
 #!CommitTicketReference repository="" revision="41979"
 REST API: Allow passing existing template value for posts even when
 template no longer exists.

 Also remove `enum` for validating allowed templates to allow plugins to
 dynamically supply their own templates for specific posts, even when they
 are not in the theme.

 Props TimothyBlynJacobs, jnylen0, swissspidy.
 Fixes #39996.
 }}}

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


More information about the wp-trac mailing list