mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Make sure encoding is not empty. Props tenpura. see #6902
git-svn-id: http://svn.automattic.com/wordpress/trunk@7156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
beb71f0932
commit
c2c7fa0aef
@ -355,9 +355,12 @@ require (ABSPATH . WPINC . '/pluggable.php');
|
|||||||
* In most cases the default internal encoding is latin1, which is of no use,
|
* In most cases the default internal encoding is latin1, which is of no use,
|
||||||
* since we want to use the mb_ functions for utf-8 strings
|
* since we want to use the mb_ functions for utf-8 strings
|
||||||
*/
|
*/
|
||||||
if ( function_exists('mb_internal_encoding') )
|
if (function_exists('mb_internal_encoding')) {
|
||||||
mb_internal_encoding( get_option( 'blog_charset' ) );
|
if (get_option('blog_charset'))
|
||||||
|
mb_internal_encoding(get_option('blog_charset'));
|
||||||
|
else
|
||||||
|
mb_internal_encoding('UTF-8');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ( defined('WP_CACHE') && function_exists('wp_cache_postload') )
|
if ( defined('WP_CACHE') && function_exists('wp_cache_postload') )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user