[wp-trac] [WordPress Trac] #14508: Always require wp-db.php
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 5 22:40:39 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 nacin):
Replying to [comment:10 wpmuguru]:
Switching this around so DB plugins can inherit the default wpdb class
should make it so that DB plugins won't need to be updated with every
release of WordPress.
That's actually doable now, though HyperDB demonstrates how it is a cheap
hack. (It sets $wpdb to true, then includes wp-db.php.) The performance
benefit here would be for opcode caches, by taking the include of wp-db
out from behind a conditional. And, of course, it makes it a lot easier to
extend wpdb, which as the hack indicates isn't really supported well at
the moment.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14508#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list