[wp-trac] [WordPress Trac] #41450: sanitize_text_field() assumes the field is a string

WordPress Trac noreply at wordpress.org
Wed Jan 16 06:04:56 UTC 2019


#41450: sanitize_text_field() assumes the field is a string
------------------------------------+---------------------
 Reporter:  johnbillion             |       Owner:  pento
     Type:  defect (bug)            |      Status:  closed
 Priority:  low                     |   Milestone:  5.1
Component:  Formatting              |     Version:  2.9
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+---------------------
Changes (by pento):

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


Comment:

 In [changeset:"44618" 44618]:
 {{{
 #!CommitTicketReference repository="" revision="44618"
 Formatting: Add type checking to `_sanitize_text_fields()`.

 When a non-string value is passed, return an empty string.

 Props Mte90.
 Fixes #41450.
 }}}

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


More information about the wp-trac mailing list