Changeset 6017

Show
Ignore:
Timestamp:
09/03/07 16:17:10 (1 year ago)
Author:
westi
Message:

Switch to require_once for wp-includes/db.php when it exists. Fixes #4597 props intoxination.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-settings.php

    r6009 r6017  
    112112    define('PLUGINDIR', 'wp-content/plugins'); // no leading slash, no trailing slash 
    113113if ( file_exists(ABSPATH . 'wp-content/db.php') ) 
    114     require (ABSPATH . 'wp-content/db.php'); 
     114    require_once (ABSPATH . 'wp-content/db.php'); 
    115115else 
    116116    require_once (ABSPATH . WPINC . '/wp-db.php');