[wp-trac] [WordPress Trac] #32257: Patch: add support for multi-line textarea sanitization

WordPress Trac noreply at wordpress.org
Tue Oct 25 17:08:33 UTC 2016

#32257: Patch: add support for multi-line textarea sanitization
 Reporter:  ottok                     |       Owner:  chriscct7
     Type:  enhancement               |      Status:  accepted
 Priority:  normal                    |   Milestone:  4.7
Component:  Formatting                |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:

Comment (by ottok):

 The test fails with the current sanitize_text_field() exactly in the same
 way. So you want me to fix the original sanitize_text_field() in the same
 go? OK, I'll take a shot at it.

 1) Tests_Formatting_SanitizeTextField::test_sanitize_text_field with data
 set #5 ('foo <\ndiv\n> bar', array('foo < div > bar', 'foo <\ndiv\n>
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'foo <
 +'foo <
  > bar'

Ticket URL: <https://core.trac.wordpress.org/ticket/32257#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list