[wp-trac] [WordPress Trac] #46358: Any POST request doesn't output any errors in version 5

WordPress Trac noreply at wordpress.org
Wed Feb 27 10:23:52 UTC 2019


#46358: Any POST request doesn't output any errors in version 5
---------------------------+------------------------------
 Reporter:  developedbyme  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  5.0
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  rest-api
---------------------------+------------------------------
Changes (by earnjam):

 * version:  5.1 => 5.0


Comment:

 Hi @developedbyme and welcome to Trac!

 This was an intentional decision to prevent malformed REST API responses
 whenever errors or warnings are thrown. See #44534 for more information.

 You should still be able to see any errors in an error log. They just
 won't be displayed in the response.

 Can you shed some more light on the type of POST to a page you are doing
 where they are not displaying? Is it a JSON request that contains `Accept`
 or `Content-Type` headers of `application/json`?

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


More information about the wp-trac mailing list