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-settings.php

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