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

WordPress Trac noreply at wordpress.org
Thu Feb 7 23:31:58 UTC 2019


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

Comment (by Nick_theGeek):

 @pento thanks. I've done a patch. I believe I did this correct but it is
 my first :)

 The test change looks like it should still work for this so I didn't
 update the test, though we could expand it to test int, bool, and float
 for expected behavior.

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


More information about the wp-trac mailing list