Plugin Directory

Changeset 227138


Ignore:
Timestamp:
04/09/2010 05:30:11 PM (16 years ago)
Author:
DeannaS
Message:

1.5.2 version - fixes permalink and theme bug for 2.9.2

Location:
wpmu-new-blog-defaults/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wpmu-new-blog-defaults/trunk/cets_blog_defaults.php

    r219541 r227138  
    88Description: WordPressMU plugin for site admin to set defaults for new blogs.
    99
    10 Version: 1.5.1
     10Version: 1.5.2
    1111
    1212Author: Deanna Schneider
     
    110110             'enable_app' => 0,
    111111             'enable_xmlrpc' => 0,
    112              'embed_autourls' => 0,
     112             'embed_autourls' => 1,
    113113             'embed_size_w' => '',
    114              'embed_size_h' => ''
     114             'embed_size_h' => 600
    115115             
    116116             );
     
    273273        }
    274274        unset($options['default_categories']);
     275       
     276       
     277        // deal with the themes
     278        if (! empty($options['theme'])) {
     279            // we want something other than the default theme
     280            $values= explode("|", $options['theme']);
     281            switch_theme($values[0], $values[1]);       
     282            //this is weird, but it would appear there might be a bug with switch theme in that it doesn't switch the current_theme. But if we kill it then the code runs to reset it.
     283            update_option('current_theme', '');
     284           
     285       
     286        }   
     287       
     288        unset($options['theme']);
    275289       
    276290       
     
    330344               
    331345                $wp_rewrite->flush_rules();
     346                // shouldn't have to do this - it should happen in the above code. But, maybe forcing it would work?
     347                update_option('rewrite_rules','');
    332348           
    333349           
    334350        // end permalink mucking about
    335        
    336        
    337         // deal with the themes
    338         if (! empty($options['theme'])) {
    339             // we want something other than the default theme
    340             $values= explode("|", $options['theme']);
    341             switch_theme($values[0], $values[1]);
    342        
    343         }   
    344        
    345 
    346        
    347351       
    348352       
  • wpmu-new-blog-defaults/trunk/readme.txt

    r219541 r227138  
    33Tags: WPMU, Wordpress Mu, Wordpress Multiuser, Blog Defaults, Set Defaults
    44Requires at least: 2.9.1.1
    5 Tested up to: 2.9.1.1
     5Tested up to: 2.9.2
    66Stable tag: trunk
    77
     
    4444
    4545== Changelog ==
     461.5.2 - fixed bugs with default theme and permalinks. Set defaults on some options to match wpmu defaults.
     47
    46481.5.1 - fixes bug with default categories
    4749
Note: See TracChangeset for help on using the changeset viewer.