[wp-trac] Re: [WordPress Trac] #2721: Add filter for wp-db query

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 1 18:49:39 GMT 2006


#2721: Add filter for wp-db query
-----------------------------------+----------------------------------------
 Reporter:  filosofo               |        Owner:  anonymous
     Type:  defect                 |       Status:  new      
 Priority:  normal                 |    Milestone:  2.1      
Component:  Administration         |      Version:  2.1      
 Severity:  normal                 |   Resolution:           
 Keywords:  wp-db has-patch query  |  
-----------------------------------+----------------------------------------
Comment (by ryan):

 [4153] and [4154] will help with inheritance.

 So, you put your custom wp-db.php in wp-content.  It sets $wpdb = true and
 then include wp-includes/wp-db.php.  The wpdb class is loaded but not
 instantiated since $wpdb is already set.  You then define your new class
 that inherits from wpdb and instantiate it as $wpdb.

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


More information about the wp-trac mailing list