[wp-trac] Re: [WordPress Trac] #3248: Need way to replace WPDB error message

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 16 16:32:45 GMT 2006


#3248: Need way to replace WPDB error message
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |        Owner:  anonymous
     Type:  enhancement   |       Status:  reopened 
 Priority:  low           |    Milestone:  2.1      
Component:  General       |      Version:  2.1      
 Severity:  minor         |   Resolution:           
 Keywords:  needs-patch   |  
--------------------------+-------------------------------------------------
Comment (by Nazgul):

 You can achieve that by setting $wpdb to some value before including wp-
 db.php and setting it to your derived class afterwards.

 wp-db.php only instantiates $wpdb if it's not already set.

 Not the most elegant way, but it works.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3248#comment:6>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list