diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 35ddd38ddc..ab7b4c176a 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -247,7 +247,7 @@ function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false $string = preg_replace( '/&(#?x?[0-9]+|[a-z]+);/i', '|wp_entity|$1|/wp_entity|', $string ); } - $string = htmlspecialchars( $string, $quote_style, $charset ); + $string = @htmlspecialchars( $string, $quote_style, $charset ); // Handle double encoding ourselves if ( !$double_encode ) {