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

WordPress Trac noreply at wordpress.org
Tue Dec 5 15:38:20 UTC 2023


#60014: REST endpoint: Output "server errors" if WP_DEBUG = true
(register_rest_route)
-------------------------+------------------------------
 Reporter:  ecc          |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  REST API     |     Version:  6.4
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  rest-api
-------------------------+------------------------------

Comment (by spacedmonkey):

 Thanks for the idea @ecc. However, when designing the fatal error handle,
 how errors like this was omitted by design. Showing error like this would
 leak information about the plugins installed. This could result in bad
 actors being about attack sites and know where the attack generated an
 error.

 We would need either new const or maybe use the new DEV mode to show these
 errors.

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


More information about the wp-trac mailing list