Silence charset not supported warnings

git-svn-id: https://develop.svn.wordpress.org/trunk@10398 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-01-21 20:28:51 +00:00
parent 07cf58c881
commit c46a012328
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 ) {