Ticket #5128: searching for db.php.patch

File searching for db.php.patch, 598 bytes (added by ComputerGuru, 5 years ago)
  • wp-admin/setup-config.php

     
    160160        define('DB_HOST', $dbhost); 
    161161 
    162162        // We'll fail here if the values are no good. 
    163         require_once('../wp-includes/wp-db.php'); 
     163        if ( file_exists(ABSPATH . 'wp-content/db.php') ) 
     164                require_once (ABSPATH . 'wp-content/db.php'); 
     165        else 
     166                require_once (ABSPATH . WPINC . '/wp-db.php'); 
     167                 
    164168        $handle = fopen('../wp-config.php', 'w'); 
    165169 
    166170        foreach ($configFile as $line_num => $line) {