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

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 6 02:59:09 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 ikailo):

 My plugin (WP Hive) currently uses db.php because it must do some work
 very early in the WP lifecycle. It's pretty hacky to include this
 functionality here, but it's the only spot that occurs after $wpdb is
 instantiated and before $table_prefix is set.

 Optimally, it would be nice to be able to hook in separately from db.php,
 since many users of WP Hive also use caching plugins, and the way it is
 now causes db.php collisions & overwrites.

 While there's still some work to do to resolve these collisions, this
 patch is a step in the right direction and it's a two-line fix in my
 plugin to adapt. +1 from me.

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


More information about the wp-trac mailing list