[wp-trac] [WordPress Trac] #34915: Consider suppressing error notices for REST API requests

WordPress Trac noreply at wordpress.org
Tue Dec 8 16:42:56 UTC 2015


#34915: Consider suppressing error notices for REST API requests
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  REST API         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+-----------------------------

Comment (by pathartl):

 Replying to [comment:1 chriscct7]:
 > I actually like that they break responses right now, because it makes it
 easier to find bugs. If the concern is breaking responses for a production
 server, they could turn off notices in their PHP.ini file (which should be
 done on production anyways)

 If this type of thing were to be considered, I would think it would make
 more sense to have it controlled by `WP_DEBUG`. Those on hosted solutions
 wouldn't have control over it if it were in PHP.ini and it doesn't really
 make sense to separate it out from WordPress.

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


More information about the wp-trac mailing list