Make WordPress Core

Changeset 7156


Ignore:
Timestamp:
03/04/2008 05:12:04 PM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r7140 r7156  
    356356 * since we want to use the mb_ functions for utf-8 strings
    357357 */
    358 if ( function_exists('mb_internal_encoding') )
    359     mb_internal_encoding( get_option( 'blog_charset' ) );
    360 
     358if (function_exists('mb_internal_encoding')) {
     359    if (get_option('blog_charset'))
     360        mb_internal_encoding(get_option('blog_charset'));
     361    else
     362        mb_internal_encoding('UTF-8');
     363}
    361364
    362365
Note: See TracChangeset for help on using the changeset viewer.