[wp-trac] [WordPress Trac] #39293: WordPress REST API warnings

WordPress Trac noreply at wordpress.org
Wed Dec 4 00:08:38 UTC 2019


#39293: WordPress REST API warnings
-------------------------------------------------+-------------------------
 Reporter:  dreamon11                            |       Owner:  jnylen0
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  4.7.1
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit      |     Focuses:  rest-api
  fixed-major                                    |
-------------------------------------------------+-------------------------

Comment (by programmin):

 I think the fix is missing the original point of this ticket - JSON
 results back from the API are returning WARNINGS. Not errors, but
 warnings, in the text of the response. and yeah, WP_DEBUG is not set to
 True, display_errors = Off in php.ini. I had a completely different case
 where this same thing happens and this is really unexpected.

 There will always be some potential for some odd plugin that gives a
 warning, but even when display_errors=Off this is still returning
 ["Warning: ... and array with warning errors as the json in a
 WP_REST_Response.

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


More information about the wp-trac mailing list