Changeset 44618
- Timestamp:
- 01/16/2019 06:04:51 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r44579 r44618 5103 5103 */ 5104 5104 function _sanitize_text_fields( $str, $keep_newlines = false ) { 5105 if ( ! is_string( $str ) ) { 5106 return ''; 5107 } 5108 5105 5109 $filtered = wp_check_invalid_utf8( $str ); 5106 5110 -
trunk/tests/phpunit/tests/formatting/SanitizeTextField.php
r42343 r44618 94 94 'Nested octects', 95 95 ), 96 array( 97 array(), 98 '', 99 ), 96 100 ); 97 101 }
Note: See TracChangeset
for help on using the changeset viewer.