XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 17, 2009, 10:51:31 PM (16 years ago)
Author:
toemon
Message:

#106 有効になっているプラグインはそのままで、XPressMEプラグインを有効にする処理を実装
誤ってXPressMEプラグインを無効にした場合、ページ読み込み時に有効化を行いリロードさせるようにした。

The activation of the XPressME plugin was executed.
Because the XPressME plugin was invalid.
Please do the rereading seeing on the page.
の表示を行い再読み込みを促すようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/onupdate.php

    r174 r179  
    4848 
    4949        /* activate the xpressme plugin */ 
    50 /* When updating it, it doesn't execute it because other plug-ins are invalidly set.  
    51         $plugin_current = "xpressme/xpressme.php"; 
    52         update_option('active_plugins', array($plugin_current)); 
    53         include_once(dirname(__FILE__) . '/../wp-content/plugins/'.$plugin_current); 
    54         do_action('activate_'.$plugin_current); 
    55         $msgs[] = 'The xpressme plug-in was activated.'; 
    56 */       
     50        require_once dirname( __FILE__ ).'/xpress_active_plugin.php'; 
     51        if (xpress_pulugin_activation('xpressme/xpressme.php')){ 
     52                $msgs[] = 'The xpressme plug-in was activated.'; 
     53        } 
    5754         
    5855//      update_option("blog_charset", wp_blog_charset()); 
Note: See TracChangeset for help on using the changeset viewer.