[wp-trac] [WordPress Trac] #38777: Add method to merge one WP_Error into another
WordPress Trac
noreply at wordpress.org
Thu Oct 8 03:35:46 UTC 2020
#38777: Add method to merge one WP_Error into another
--------------------------------------+-----------------------
Reporter: rmccue | Owner: dlh
Type: feature request | Status: assigned
Priority: normal | Milestone: 5.6
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+-----------------------
Comment (by TimothyBlynJacobs):
I think the worry about not reading from the old property is if people
write to `error_data` directly. If we do the extra work of shifting
messages, `get_all_error_data()` should, I think, return the correct
values. Whereas if we don't do the message shifting, a direct write to
`error_data` would be lost.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38777#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list