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:
parent
07cf58c881
commit
c46a012328
|
@ -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