[wp-trac] [WordPress Trac] #28092: Ability to filter or remove error codes from WP_Error class

WordPress Trac noreply at wordpress.org
Thu Sep 11 16:06:27 UTC 2014


#28092: Ability to filter or remove error codes from WP_Error class
------------------------------------------+-----------------------------
 Reporter:  AdamCapriola                  |       Owner:
     Type:  enhancement                   |      Status:  reopened
 Priority:  normal                        |   Milestone:  Future Release
Component:  General                       |     Version:  2.1
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------
Changes (by nacin):

 * keywords:   => needs-patch needs-unit-tests
 * type:  feature request => enhancement
 * milestone:   => Future Release


Comment:

 Yes, there should be a WP_Error::remove( $code ). It should remove the
 code (and all messages for that code) and the corresponding error data,
 and it should have some basic unit tests.

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


More information about the wp-trac mailing list