[wp-trac] [WordPress Trac] #38777: Add method to merge one WP_Error into another

WordPress Trac noreply at wordpress.org
Fri Oct 9 22:21:05 UTC 2020


#38777: Add method to merge one WP_Error into another
--------------------------------------+--------------------------
 Reporter:  rmccue                    |       Owner:  johnbillion
     Type:  feature request           |      Status:  closed
 Priority:  normal                    |   Milestone:  5.6
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+--------------------------
Changes (by johnbillion):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49115" 49115]:
 {{{
 #!CommitTicketReference repository="" revision="49115"
 General: Introduce the ability to merge multiple `WP_Error` objects into
 one another, and to store more than one item of data for an error.

 This allows multiple errors to be instantiated independently but collected
 into one without having to manually combine their properties.

 Props rmccue, dlh, TimothyBlynJacobs

 Fixes #38777
 }}}

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


More information about the wp-trac mailing list