mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Fallback to UTF-8 if not valid mb_internal_encoding. Props tenpura. fixes #6092
git-svn-id: http://svn.automattic.com/wordpress/trunk@7157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c2c7fa0aef
commit
6e80433a40
@ -356,9 +356,7 @@ require (ABSPATH . WPINC . '/pluggable.php');
|
||||
* since we want to use the mb_ functions for utf-8 strings
|
||||
*/
|
||||
if (function_exists('mb_internal_encoding')) {
|
||||
if (get_option('blog_charset'))
|
||||
mb_internal_encoding(get_option('blog_charset'));
|
||||
else
|
||||
if (!@mb_internal_encoding(get_option('blog_charset')))
|
||||
mb_internal_encoding('UTF-8');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user