XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 23, 2010, 5:53:15 PM (15 years ago)
Author:
toemon
Message:

xoops_mod_wordpress060_alphaからのアップグレード時にblog_charsetがUTF-8になってしまう症状を対策 Fixes #336

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php

    r568 r584  
    6666        } 
    6767} 
     68 
     69function  blog_charset_check() 
     70{ 
     71        $lang= WPLANG; 
     72        if($lang == 'ja_EUC'){ 
     73                $blog_charset = get_option('blog_charset'); 
     74                if ($blog_charset !=='EUC-JP') { 
     75                        update_option('blog_charset', 'EUC-JP' ); 
     76                } 
     77        } 
     78} 
     79 
    6880add_action('admin_menu', 'my_plugin_menu'); 
    6981 
     
    8597 
    8698add_action("the_content",       "set_post_views_count"); 
     99 
     100// blog charset check 
     101add_action("init",      "blog_charset_check"); 
     102 
    87103 
    88104//XOOPS notifiction 
Note: See TracChangeset for help on using the changeset viewer.