#25703 closed enhancement (fixed)
Allow custom template for database connection failure
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.7 |
Component: | Database | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
In the dead_db() function in wp-includes/functions.php, we allow for a custom template to load if the there is a db error. This same template could be used in db_connect().
Attachments (3)
Change History (8)
#2
@
11 years ago
- Keywords commit added
- Milestone changed from Awaiting Review to 3.9
Makes sense to me! Will check it out.
#3
@
11 years ago
Should developers expect translations to be loaded before the db-error.php drop-in is included?
Because right now it depends on whether dead_db()
is called in is_blog_installed()
or in wp_set_wpdb_vars()
, and db_connect()
seems to suffer from the same issue with the proposed patch. Since we load translations anyway before displaying the default errors, I guess there's no problem in loading them for db-error.php.
See 25703.diff
Note: See
TracTickets for help on using
tickets.
Screenshot of current error screen