#3248 closed enhancement (wontfix)
Need way to replace WPDB error message
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | minor | Version: | 2.1 |
Component: | General | Keywords: | needs-patch |
Focuses: | Cc: |
Description
We need some way to easily replace the error message(s) for unable to connect to the database in wp-db.php
. A hook wouldn't work 'cause no plugins would run before then (since we don't know what's activated), so perhaps something in the same way that advanced-cache.php
works would be in order.
Thoughts?
Change History (8)
#2
@
18 years ago
Yeah, I know about that, but it's not exactly what I had in mind (as I'd have to add any bugfixes to wp-db.php
to my clone), but I guess it'll have to do.
#5
@
18 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Surely this should be as easy as basing your class on wpdb and overriding the contructor.
We may need to change the way in which wpdb is instantiated to make this easier. As at present you can't include the real wpdb and extend it without $wpdb being created as normal.
Note: See
TracTickets for help on using
tickets.
http://trac.wordpress.org/browser/trunk/wp-settings.php#L89