[wp-trac] [WordPress Trac] #49680: Consider also allowing POST requests for block ServerSideRender endpoint

WordPress Trac noreply at wordpress.org
Tue Apr 28 00:46:58 UTC 2020


#49680: Consider also allowing POST requests for block ServerSideRender endpoint
------------------------------------------+-----------------------
 Reporter:  ryankienstra                  |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  5.5
Component:  REST API                      |     Version:  5.0
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  rest-api
------------------------------------------+-----------------------

Comment (by TimothyBlynJacobs):

 Yep @ryankienstra, that's it. No worries!

 I believe the test failure is because you are not setting a
 `application/json` `content-type` header. You could also test using
 `set_body_params` which would be a bit simpler.

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


More information about the wp-trac mailing list