From c46a01232840e4b38c75dbf1af5298ce2a6f3c21 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 21 Jan 2009 20:28:51 +0000 Subject: [PATCH] Silence charset not supported warnings git-svn-id: https://develop.svn.wordpress.org/trunk@10398 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {