[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:31:22 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
--------------------------------------+-----------------------

Comment (by lucasstark):

 @swissspidy The page template can also be empty, so it needs to account
 for that as well.

 To reproduce create a new page from the dashboard and then look at the
 result from the API for that new page.

 http://example.com/wp-json/wp/v2/pages/<PAGE-ID>

 You'll see that the template is an empty string.

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


More information about the wp-trac mailing list