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

WordPress Trac noreply at wordpress.org
Tue Nov 22 17:44:04 UTC 2016


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

Comment (by rachelbaker):

 @joehoyle In [attachment:38877.2.diff] we still need a test for updating a
 template to the default `''` in `WP_Test_REST_Pages_Controller` since that
 was how this issue was discovered.

 Also, why did you chose to put`test_create_item_with_template_none()` in
 `WP_Test_REST_Posts_Controller` instead of the pages controller tests?

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


More information about the wp-trac mailing list