[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 16:24:14 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 ecc):

 Hi @spacedmonkey. Thank you for your quick reply. You're right. This is
 data for developer's eyes only. :)

 I also thing, a new constant whould be useful.


 {{{
 define('WP_DEVELOPER_MODE', true);
 }}}

 Only if the constant is set and true, all errors are visible for the
 developers.

 **IDEA:**

 If WP_DEVELOPER_MODE is on, this should be highlighted in the WordPress
 Admin-Interface very prominent.

 Something like: **"Attention: WP_DEVELOPER_MODE is active. (Never activate
 it on your production site)"**

 What you do you think?

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


More information about the wp-trac mailing list