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

WordPress Trac noreply at wordpress.org
Wed Nov 11 21:20:56 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 johnbillion):

 Personally, my use case for this is to track a `WP_Error` object as it
 moves through a call stack. I'm not interested in when a function performs
 a check for a `WP_Error`, I'm interested in when a `WP_Error` object
 passes through that function.

 What's the use case for needing to know when a function checks for a
 `WP_Error` but the variable it checks is not one?

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


More information about the wp-trac mailing list