[wp-trac] [WordPress Trac] #28319: Add hook to WP_Error for logging and report purposes

WordPress Trac noreply at wordpress.org
Thu Jan 8 04:24:29 UTC 2015


#28319: Add hook to WP_Error for logging and report purposes
-----------------------------------+-----------------------------
 Reporter:  ebinnion               |       Owner:  johnbillion
     Type:  enhancement            |      Status:  reopened
 Priority:  normal                 |   Milestone:  Future Release
Component:  General                |     Version:  4.0
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |     Focuses:
-----------------------------------+-----------------------------

Comment (by ebinnion):

 I went ahead and created a new patch that only fires the add_wp_error hook
 when WP_DEBUG is defined and true to minimize some of the noise and DOS
 attach concerns.

 While this isn't a logger, I still think this is a valid approach for
 developers to be able to get at WP_Error objects.

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


More information about the wp-trac mailing list