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

WordPress Trac noreply at wordpress.org
Wed Apr 26 01:58:08 UTC 2017

#40568: Add an action in WP_Error::add()
 Reporter:  Shelob9       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  2.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:

Comment (by Shelob9):

 My patch adds the action in side of WP_Error::add() It also replaces the
 code that is totally the same in the constructor as that method so the
 action is fired by adding an error through the constructor without
 increasing code duplication.

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

More information about the wp-trac mailing list