XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 9, 2010, 3:57:19 PM (15 years ago)
Author:
toemon
Message:

multiBlogで新しいブログ作成時のデフォルトテーマ Fixes #299

File:
1 edited

Legend:

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

    r531 r532  
    132132add_action('admin_footer', array(&$xpress_config, 'displayDebugLog')); 
    133133add_action('wp_footer', array(&$xpress_config, 'displayDebugLog')); 
     134 
     135// Multi Blog default Themes 
     136function my_new_blog_template($blog_id) { 
     137        $default_theme = 'xpress_default'; 
     138        update_blog_option($blog_id, 'template',$default_theme); 
     139        update_blog_option($blog_id, 'stylesheet', $default_theme); 
     140} 
     141add_action('wpmu_new_blog','my_new_blog_template',0,1); 
     142 
    134143 
    135144function redirect_xoops_admin() 
Note: See TracChangeset for help on using the changeset viewer.