[wp-trac] [WordPress Trac] #40568: Add an action in WP_Error::add()

WordPress Trac noreply at wordpress.org
Tue Sep 22 09:17:28 UTC 2020


#40568: Add an action in WP_Error::add()
------------------------------------+--------------------------
 Reporter:  Shelob9                 |       Owner:  johnbillion
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:  5.6
Component:  General                 |     Version:  2.1
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+--------------------------

Comment (by Mte90):

 Talking with the Italian community we discussed how that function is a
 pure function.
 So doesn't should handle other things otherside a proposal was to execute
 the hook if `WP_DEBUG` is set as true to minimize the effect (after all is
 just for development).

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


More information about the wp-trac mailing list