[wp-trac] [WordPress Trac] #14508: Always require wp-db.php

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 2 23:30:32 UTC 2010


#14508: Always require wp-db.php
----------------------------+-----------------------------------------------
 Reporter:  nacin           |       Owner:  westi   
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  3.1     
Component:  Database        |     Version:          
 Severity:  normal          |    Keywords:          
----------------------------+-----------------------------------------------

Comment(by Denis-de-Bernardy):

 Actually, the third may break if you define the db class after everything
 gets defined, if you include db.php, wpdb within it, and finally
 instantiate the mess. Not saying it's a bad thing to do so -- far from it.
 Rather, be sure to announce it somehow, else a lot of sites using cache
 plugins or custom db plugins might break. I know mine will. ;-)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14508#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list