Make WordPress Core

Changeset 763


Ignore:
Timestamp:
01/12/2004 12:50:32 PM (22 years ago)
Author:
saxmatt
Message:

More upgrade fixes for b2.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import-b2.php

    r705 r763  
    22if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. Double check that you updated wp-config.sample.php with the proper database connection information and renamed it to wp-config.php.");
    33require_once('../wp-config.php');
    4 
     4require('upgrade-functions.php');
    55$step = $HTTP_GET_VARS['step'];
    66if (!$step) $step = 0;
     
    241241
    242242$q = $wpdb->query($query);
    243 upgrade_071();
    244 upgrade_072();
    245 upgrade_100();
    246 ?>
    247 
    248 <p>Don't forget to CHMOD the <code>weblogs.com.changes.cache</code> file and you'll
    249   be A-okay. Welcome to the family.</p>
     243upgrade_all();
     244?>
     245
     246<p>Welcome to the family. <a href="../">Have fun</a>!</p>
    250247  <?php
    251248    break;
  • trunk/wp-admin/upgrade-functions.php

    r762 r763  
    166166    }
    167167
     168    // Guess a site URI
     169$guessurl = preg_replace('|/wp-admin/.*|i', '', 'http://' . $HTTP_HOST . $REQUEST_URI);
    168170    $option_data = array(       //base options from b2cofig
    169         "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (1,'siteurl', 3, 'http://example.com', 'siteurl is your blog\'s URL: for example, \'http://example.com/wordpress\' (no trailing slash !)', 8, 30)",
     171        "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (1,'siteurl', 3, '$guessurl', 'siteurl is your blog\'s URL: for example, \'http://example.com/wordpress\'', 8, 30)",
    170172        "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (2,'blogfilename', 3, 'index.php', 'blogfilename is the name of the default file for your blog', 8, 20)",
    171173        "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (3,'blogname', 3, 'my weblog', 'blogname is the name of your blog', 8, 20)",
  • trunk/wp-settings.php

    r725 r763  
    4545// get_settings() wherever these are needed OR
    4646// accessing a single global $all_settings var
    47 if (!strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php')) {
     47if (!strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php') && !strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'wp-admin/import')) {
    4848    $siteurl = get_settings('siteurl');
    4949    // "When trying to design a foolproof system,
Note: See TracChangeset for help on using the changeset viewer.