[wp-trac] [WordPress Trac] #42742: Add a has_errors() method to WP_Error
WordPress Trac
noreply at wordpress.org
Fri Feb 2 15:18:22 UTC 2018
#42742: Add a has_errors() method to WP_Error
-------------------------------------------------+-------------------------
Reporter: DrewAPicture | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests good- | Focuses:
first-bug |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* milestone: Awaiting Review => 5.0
Comment:
Hi @robdxw, thanks for the patch! It looks good to me.
As a next step, we could update all the instances in WordPress core that
currently check if a `WP_Error` object contains any errors in one way or
another (as outlined in the ticket description) to use the new method
instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42742#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list