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

WordPress Trac noreply at wordpress.org
Thu Sep 17 14:30:50 UTC 2020


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

Comment (by johnbillion):

 An alternative is to only trigger the `wp_error_checked` action when the
 `$thing` is an error. I can't think of a situation where I'd want to track
 that action if it's not an error.

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


More information about the wp-trac mailing list