Changeset 227138
- Timestamp:
- 04/09/2010 05:30:11 PM (16 years ago)
- Location:
- wpmu-new-blog-defaults/trunk
- Files:
-
- 2 edited
-
cets_blog_defaults.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpmu-new-blog-defaults/trunk/cets_blog_defaults.php
r219541 r227138 8 8 Description: WordPressMU plugin for site admin to set defaults for new blogs. 9 9 10 Version: 1.5. 110 Version: 1.5.2 11 11 12 12 Author: Deanna Schneider … … 110 110 'enable_app' => 0, 111 111 'enable_xmlrpc' => 0, 112 'embed_autourls' => 0,112 'embed_autourls' => 1, 113 113 'embed_size_w' => '', 114 'embed_size_h' => ''114 'embed_size_h' => 600 115 115 116 116 ); … … 273 273 } 274 274 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']); 275 289 276 290 … … 330 344 331 345 $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',''); 332 348 333 349 334 350 // end permalink mucking about 335 336 337 // deal with the themes338 if (! empty($options['theme'])) {339 // we want something other than the default theme340 $values= explode("|", $options['theme']);341 switch_theme($values[0], $values[1]);342 343 }344 345 346 347 351 348 352 -
wpmu-new-blog-defaults/trunk/readme.txt
r219541 r227138 3 3 Tags: WPMU, Wordpress Mu, Wordpress Multiuser, Blog Defaults, Set Defaults 4 4 Requires at least: 2.9.1.1 5 Tested up to: 2.9. 1.15 Tested up to: 2.9.2 6 6 Stable tag: trunk 7 7 … … 44 44 45 45 == Changelog == 46 1.5.2 - fixed bugs with default theme and permalinks. Set defaults on some options to match wpmu defaults. 47 46 48 1.5.1 - fixes bug with default categories 47 49
Note: See TracChangeset
for help on using the changeset viewer.