[wp-trac] [WordPress Trac] #32350: Sanitize_Option needs to be able to handle a WP Error Object

WordPress Trac noreply at wordpress.org
Tue Jun 16 01:28:50 UTC 2015


#32350: Sanitize_Option needs to be able to handle a WP Error Object
--------------------------+-----------------------------
 Reporter:  chriscct7     |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.2.3
Component:  Formatting    |     Version:  4.2
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"32791"]:
 {{{
 #!CommitTicketReference repository="" revision="32791"
 `sanitize_option()` needs to handle `WP_Error`. DRY the conditional calls
 to `add_settings_error()`.

 Props chriscct7 for an initial patch.
 Fixes #32350.
 }}}

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


More information about the wp-trac mailing list