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

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 2 17:06:34 UTC 2010


#14508: Always require wp-db.php
----------------------------+-----------------------------------------------
 Reporter:  nacin           |       Owner:     
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.1
Component:  Database        |     Version:     
 Severity:  normal          |    Keywords:     
----------------------------+-----------------------------------------------
 Let's change how require_wp_db() works for performance reasons. Always
 include wp-db.php, then include db.php if it exists, then instantiate wpdb
 directly in wp-settings.php as we currently do at the end of wp-db.php.
 This logic would all take place in wp-settings.php and we can do away with
 require_wp_db() in the process.

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


More information about the wp-trac mailing list