XPressME Integration Kit

Trac

Changeset 34


Ignore:
Timestamp:
Dec 18, 2008, 1:20:50 PM (15 years ago)
Author:
toemon
Message:

モジュールインストール・アップデート時にxpressmeプラグインを有効にする #42

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/oninstall.php

    r1 r34  
    6767        update_option("home", $site_url); 
    6868        update_option("siteurl", $site_url); 
    69 //      update_option("template", "xpress_st"); 
    70 //      update_option("stylesheet", "xpress_st"); 
     69        update_option("template", "xpress_default"); 
     70        update_option("stylesheet", "xpress_default"); 
    7171        update_option("what_to_show", "posts"); 
    7272 
     
    7676         
    7777        /* activate the tag plugin */ 
    78 //      $plugin_current = "terong_related.php"; 
    79 //      update_option('active_plugins', array($plugin_current)); 
    80 //      include(dirname(__FILE__) . '/../wp-content/plugins/'.$plugin_current); 
    81 //      do_action('activate_'.$plugin_current); 
     78        $plugin_current = "xpressme/xpressme.php"; 
     79        update_option('active_plugins', array($plugin_current)); 
     80        include(dirname(__FILE__) . '/../wp-content/plugins/'.$plugin_current); 
     81        do_action('activate_'.$plugin_current); 
    8282                 
    8383// Admin User Data write 
  • trunk/include/onupdate.php

    r1 r34  
    4646                }                                
    4747        } 
     48        /* activate the tag plugin */ 
     49        $plugin_current = "xpressme/xpressme.php"; 
     50        update_option('active_plugins', array($plugin_current)); 
     51        include(dirname(__FILE__) . '/../wp-content/plugins/'.$plugin_current); 
     52        do_action('activate_'.$plugin_current); 
     53         
    4854//      update_option("blog_charset", wp_blog_charset()); 
    4955        $xpress_version = $module->modinfo['version']; 
Note: See TracChangeset for help on using the changeset viewer.