WordPress.org

Make WordPress Core

Ticket #6481: 6481.diff

File 6481.diff, 555 bytes (added by Denis-de-Bernardy, 9 years ago)
  • wp-admin/includes/upgrade.php

     
    6969
    7070        wp_install_defaults($user_id);
    7171
     72        if ( got_mod_rewrite() && is_file(ABSPATH . '.htaccess') && is_writable(ABSPATH . '.htaccess') )
     73                $wp_rewrite->set_permalink_structure('/%year%/%monthnum%/%day%/%postname%/');
     74       
    7275        $wp_rewrite->flush_rules();
    7376
    7477        wp_new_blog_notification($blog_title, $guessurl, $user_id, $random_password);