mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
Silence charset not supported warnings
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8bdb07273d
commit
a5347b5be6
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user