[wp-trac] Re: [WordPress Trac] #4207: Pluggable DB Down Page
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 30 18:04:06 GMT 2007
#4207: Pluggable DB Down Page
-------------------------+--------------------------------------------------
Reporter: linickx | Owner: anonymous
Type: enhancement | Status: new
Priority: low | Milestone: 2.4
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by Otto42):
Good idea. The problem is that the wp-db.php file loads way before
pluggable or plugins or even the theme files. It's one of the very first
files to load.
Hacking your code code is an obvious way to do it, of course. Unpleasant,
but there you go.
Another not-so-obvious way is to copy the wp-db.php file to wp-
content/db.php and hack it there instead. When Wordpress sees a db.php
file in wp-content, it uses it instead of wp-db.php. The idea there seems
to be to allow people to replace the DB code with other code entirely,
perhaps to support other databases than mySQL.
But that's just ways to do it right now, of course.
--
Ticket URL: <http://trac.wordpress.org/ticket/4207#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list