Changeset 4686 for trunk/wp-includes/wp-db.php
- Timestamp:
- 01/06/2007 11:36:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r4619 r4686 45 45 */ 46 46 function wpdb($dbuser, $dbpassword, $dbname, $dbhost) { 47 return $this->__construct($dbuser, $dbpassword, $dbname, $dbhost); 48 } 49 50 function __construct($dbuser, $dbpassword, $dbname, $dbhost) { 51 register_shutdown_function(array(&$this, "__destruct")); 52 47 53 $this->dbh = @mysql_connect($dbhost, $dbuser, $dbpassword); 48 54 if (!$this->dbh) { … … 60 66 61 67 $this->select($dbname); 68 } 69 70 function __destruct() { 71 return true; 62 72 } 63 73
Note: See TracChangeset
for help on using the changeset viewer.