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:
parent
f19f65a5e5
commit
7d53481dcb
|
@ -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 = 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
|
// Handle double encoding ourselves
|
||||||
if ( !$double_encode ) {
|
if ( !$double_encode ) {
|
||||||
|
|
Loading…
Reference in New Issue