[wp-trac] [WordPress Trac] #38877: REST API - Unable to update page when default template used.

WordPress Trac noreply at wordpress.org
Sun Nov 20 12:01:54 UTC 2016


#38877: REST API - Unable to update page when default template used.
--------------------------------------+-----------------------
 Reporter:  lucasstark                |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.7
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-----------------------
Changes (by swissspidy):

 * keywords:   => has-patch has-unit-tests
 * milestone:  Awaiting Review => 4.7


Comment:

 `wp_insert_post()` checks if the page template is valid (i.e. exists) or
 equals 'default'. It seems sensible to do the same for the REST API. See
 [attachment:38877.diff].

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


More information about the wp-trac mailing list