Make WordPress Core

Changeset 6197


Ignore:
Timestamp:
10/06/2007 08:12:06 AM (17 years ago)
Author:
westi
Message:

Remove accidental change to tags 2.3

Location:
tags/2.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tags/2.3/wp-admin/setup-config.php

    r6196 r6197  
    11<?php
    22define('WP_INSTALLING', true);
    3 //These two defines are required to allow us to use require_wp_db() to load the database class while being wp-content/wp-db.php aware
    4 define('ABSPATH', dirname(__FILE__).'/../');
    5 define('WPINC', 'wp-includes');
    63
    74require_once('../wp-includes/compat.php');
     
    164161
    165162    // We'll fail here if the values are no good.
    166     require_wp_db();
     163    require_once('../wp-includes/wp-db.php');
    167164    $handle = fopen('../wp-config.php', 'w');
    168165
  • tags/2.3/wp-includes/functions.php

    r6196 r6197  
    14171417}
    14181418
    1419 /*
    1420  * require_wp_db() - require_once the correct database class file.
    1421  *
    1422  * This function is used to load the database class file either at runtime or by wp-admin/setup-config.php
    1423  * We must globalise $wpdb to ensure that it is defined globally by the inline code in wp-db.php
    1424  *
    1425  * @global $wpdb
    1426  */
    1427 function require_wp_db()
    1428 {
    1429     global $wpdb;
    1430     if ( file_exists(ABSPATH . 'wp-content/db.php') )
    1431         require_once (ABSPATH . 'wp-content/db.php');
    1432     else
    1433         require_once (ABSPATH . WPINC . '/wp-db.php');
    1434 }
    1435 
    14361419?>
  • tags/2.3/wp-settings.php

    r6196 r6197  
    118118require (ABSPATH . WPINC . '/functions.php');
    119119
    120 require_wp_db();
     120if ( file_exists(ABSPATH . 'wp-content/db.php') )
     121    require_once (ABSPATH . 'wp-content/db.php');
     122else
     123    require_once (ABSPATH . WPINC . '/wp-db.php');
     124
    121125// $table_prefix is deprecated as of 2.1
    122126$wpdb->prefix = $table_prefix;
Note: See TracChangeset for help on using the changeset viewer.