#41655 closed enhancement (fixed)
Enable dead_db() to be trappable always.
| Reported by: | gitlost | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.2 |
| Component: | Database | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
It would be handy if dead_db() could be made trappable always, either through using wp_die() instead of die() in the terse case, or via a filter.
It currently causes WP-CLI (see https://github.com/wp-cli/wp-cli/pull/4303) to resort to a brittle hack in order to trap database connection errors.
Attachments (5)
Change History (14)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Terse die() at 360 width Firefox.