We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_sanitize_text_fields()
1 parent 67a89a7 commit d5c4817Copy full SHA for d5c4817
wp-includes/formatting.php
@@ -5102,6 +5102,10 @@ function sanitize_textarea_field( $str ) {
5102
* @return string Sanitized string.
5103
*/
5104
function _sanitize_text_fields( $str, $keep_newlines = false ) {
5105
+ if ( ! is_string( $str ) ) {
5106
+ return '';
5107
+ }
5108
+
5109
$filtered = wp_check_invalid_utf8( $str );
5110
5111
if ( strpos( $filtered, '<' ) !== false ) {
wp-includes/version.php
@@ -13,7 +13,7 @@
13
*
14
* @global string $wp_version
15
16
-$wp_version = '5.1-beta1-44617';
+$wp_version = '5.1-beta1-44618';
17
18
/**
19
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
0 commit comments