XPressME Integration Kit

Trac


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

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

File:
1 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 
Note: See TracChangeset for help on using the changeset viewer.