Make WordPress Core


Ignore:
Timestamp:
10/06/2007 07:55:03 AM (17 years ago)
Author:
westi
Message:

Move database class loading to a shared function to ensure all of WordPress is wp-content/wp-db.php aware. Fixes #5128 props ComputerGuru.

File:
1 edited

Legend:

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

    r6137 r6196  
    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
     4define('ABSPATH', dirname(__FILE__).'/../');
     5define('WPINC', 'wp-includes');
    36
    47require_once('../wp-includes/compat.php');
     
    161164
    162165    // We'll fail here if the values are no good.
    163     require_once('../wp-includes/wp-db.php');
     166    require_wp_db();
    164167    $handle = fopen('../wp-config.php', 'w');
    165168
Note: See TracChangeset for help on using the changeset viewer.