Changeset 672
- Timestamp:
- 12/31/2003 11:51:41 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/install-config.php
r664 r672 124 124 fwrite($handle, str_replace("localhost", $dbhost, $line)); 125 125 break; 126 case '$table_prefix ':126 case '$table_prefix =': 127 127 fwrite($handle, str_replace('wp_', $prefix, $line)); 128 128 break; -
trunk/wp-admin/install.php
r664 r672 657 657 <form action="install.php?step=3" method="post"> 658 658 <input type="hidden" name="step" value="3" /> 659 <p>What is the url for your blog? <input name="url" type="text" size="60" /> 660 , now on to <input type="submit" value="Step 3" ></p> 659 <p>What is the URL for your blog?<br /> 660 <?php 661 $guessurl = str_replace('/wp-admin/install.php?step=2', '', 'http://' . $HTTP_HOST . $REQUEST_URI); 662 ?> 663 <input name="url" type="text" size="60" value="<?php echo $guessurl; ?>" /> 664 </p> 665 <p>On to 666 <input type="submit" value="Step 3..." /> 667 </p> 661 668 </form> 662 669 -
trunk/wp-admin/upgrade-functions.php
r664 r672 456 456 457 457 function upgrade_100() { 458 global $wpdb, $tableposts, $tablecomments, $tablecategories, $tableoptionvalues, $tableoptiongroups, $tableoptiongroup_options, $tableoptions, $tablepost2cat ;458 global $wpdb, $tableposts, $tablecomments, $tablecategories, $tableoptionvalues, $tableoptiongroups, $tableoptiongroup_options, $tableoptions, $tablepost2cat, $tablelinks, $tableusers; 459 459 maybe_add_column($tableposts, 'post_name', "ALTER TABLE `$tableposts` ADD `post_name` VARCHAR(200) NOT NULL"); 460 460 maybe_add_column($tableposts, 'to_ping', "ALTER TABLE $tableposts ADD `to_ping` TEXT NOT NULL"); … … 465 465 maybe_add_column($tablecategories, 'category_description', "ALTER TABLE `$tablecategories` ADD `category_description` TEXT NOT NULL"); 466 466 maybe_add_column($tablecategories, 'category_parent', "ALTER TABLE `$tablecategories` ADD `category_parent` INT(4) NOT NULL"); 467 maybe_add_column($tablelinks, 'link_rss', "ALTER TABLE `$tablelinks` ADD `link_rss` VARCHAR( 255 ) NOT NULL;"); 468 maybe_add_column($tableusers, 'user_description', "ALTER TABLE `$tableusers` ADD `user_description` TEXT NOT NULL"); 467 469 468 470 // Create indicies -
trunk/wp-includes/functions.php
r652 r672 542 542 543 543 function get_settings($setting) { 544 global $wpdb, $cache_settings, $use_cache; 544 global $wpdb, $cache_settings, $use_cache, $REQUEST_URI; 545 if (strstr($REQUEST_URI, 'install.php')) return false; 545 546 if ((empty($cache_settings)) OR (!$use_cache)) { 546 547 $settings = get_alloptions(); -
trunk/wp-settings.php
r650 r672 18 18 $tableoptiongroups = $table_prefix . 'optiongroups'; 19 19 $tableoptiongroup_options = $table_prefix . 'optiongroup_options'; 20 define('WPINC', 'wp-includes'); 21 require (ABSPATH . WPINC . '/wp-db.php'); 22 23 $wpdb->hide_errors(); 24 if (!$wpdb->get_row("SELECT * FROM $tableoptions LIMIT 1") && !strstr($REQUEST_URI, 'install.php')) { 25 die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>."); 26 } 27 $wpdb->show_errors(); 20 28 21 29 // This is the name of the include directory. No "/" allowed. 22 define('WPINC', 'wp-includes');23 30 31 require (ABSPATH . WPINC . '/functions.php'); 24 32 require (ABSPATH . 'wp-config-extra.php'); 25 require (ABSPATH . WPINC . '/wp-db.php');26 require (ABSPATH . WPINC . '/functions.php');27 33 require (ABSPATH . WPINC . '/template-functions.php'); 28 34 require (ABSPATH . WPINC . '/class-xmlrpc.php'); … … 36 42 // get_settings() wherever these are needed OR 37 43 // accessing a single global $all_settings var 38 if (! isset($_wp_installing) || !$_wp_installing) {44 if (!strstr($REQUEST_URI, 'install.php')) { 39 45 $siteurl = get_settings('siteurl'); 40 46 // "When trying to design a foolproof system, … … 99 105 } //end !$_wp_installing 100 106 107 108 101 109 require (ABSPATH . WPINC . '/vars.php'); 102 110 ?>
Note: See TracChangeset
for help on using the changeset viewer.