diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
index 75efc33f..baf8ea3f 100644
--- a/wp-includes/formatting.php
+++ b/wp-includes/formatting.php
@@ -1093,6 +1093,9 @@ function wp_specialchars_decode( $text, $quote_style = ENT_NOQUOTES ) {
  * @return string The checked text.
  */
 function wp_check_invalid_utf8( $text, $strip = false ) {
+	if ( is_array( $text ) ) {
+		return '';
+	}
 	$text = (string) $text;
 
 	if ( 0 === strlen( $text ) ) {
