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

WordPress Trac noreply at wordpress.org
Sun Jul 19 23:25:21 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 fixed-major  |     Focuses:
-----------------------------------+-----------------------------
Changes (by pento):

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


Comment:

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

 Merge of [32791] to the 4.2 branch.

 Props wonderboymusic, chriscct7 for an initial patch.

 Fixes #32350.
 }}}

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


More information about the wp-trac mailing list