Make sure encoding is not empty. Props tenpura. see #6902

git-svn-id: https://develop.svn.wordpress.org/trunk@7156 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-04 17:12:04 +00:00
parent dc6c68d79a
commit 3185d6f736
1 changed files with 6 additions and 3 deletions

View File

@ -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') )