Ticket #6481: upgrade.diff
File upgrade.diff, 881 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/upgrade.php
69 69 70 70 wp_install_defaults($user_id); 71 71 72 $wp_rewrite->flush_rules(); 72 $permalink_structure = ''; 73 $cat_base = ''; 74 $tag_base = ''; 73 75 76 if ( got_mod_rewrite() && is_file(ABSPATH . '.htaccess') && is_writable(ABSPATH . '.htaccess') ) 77 { 78 $permalink_structure = '/%year%/%monthnum%/%day%/%postname%/'; 79 } 80 81 update_option('permalink_structure', $permalink_structure); 82 update_option('category_base', $cat_base); 83 update_option('tag_base', $tag_base); 84 85 $GLOBALS['wp_rewrite'] =& new WP_Rewrite(); 86 $GLOBALS['wp_rewrite']->flush_rules(); 87 88 74 89 wp_new_blog_notification($blog_title, $guessurl, $user_id, $random_password); 75 90 76 91 wp_cache_flush();