Ticket #46329: 46329.diff
| File 46329.diff, 523 bytes (added by , 7 years ago) |
|---|
-
src/wp-includes/formatting.php
diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index b5c4982141..6159af1e5b 100644
a b function sanitize_textarea_field( $str ) { 5153 5153 * @return string Sanitized string. 5154 5154 */ 5155 5155 function _sanitize_text_fields( $str, $keep_newlines = false ) { 5156 if ( is_object( $str) || is_array( $str ) ) {5156 if ( ( is_object( $str ) && ! method_exists( $str, '__toString' ) ) || is_array( $str ) ) { 5157 5157 return ''; 5158 5158 } 5159 5159