[wp-trac] [WordPress Trac] #60014: REST endpoint: Output "server errors" if WP_DEBUG = true (register_rest_route)

WordPress Trac noreply at wordpress.org
Tue Feb 13 03:55:42 UTC 2024


#60014: REST endpoint: Output "server errors" if WP_DEBUG = true
(register_rest_route)
------------------------------+---------------------------
 Reporter:  ecc               |       Owner:  spacedmonkey
     Type:  enhancement       |      Status:  assigned
 Priority:  normal            |   Milestone:  6.5
Component:  REST API          |     Version:  6.4
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  rest-api
------------------------------+---------------------------

Comment (by rcorrales):

 I applied the patch from https://patch-
 diff.githubusercontent.com/raw/WordPress/wordpress-develop/pull/5840.diff
 locally, forced an error, and confirmed that the details appeared as a
 `data.error` object when setting `Content-Type: application/json` and
 `WP_DEBUG_DISPLAY` is enabled.

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


More information about the wp-trac mailing list