Silence charset not supported warnings

git-svn-id: http://svn.automattic.com/wordpress/trunk@10398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-01-21 20:28:51 +00:00
parent f19f65a5e5
commit 7d53481dcb
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {