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

WordPress Trac noreply at wordpress.org
Wed Nov 23 02:46:43 UTC 2016


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

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


Comment:

 In [changeset:"39343"]:
 {{{
 #!CommitTicketReference repository="" revision="39343"
 REST API: Allow unsetting of page templates in update requests.

 Sending a request to update a page with the template property set to an
 empty string resulted in an error because “” was not a valid value in the
 enum.

 Props lucasstark, swissspidy.
 Fixes #38877.
 }}}

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


More information about the wp-trac mailing list