[wp-trac] [WordPress Trac] #41655: Enable dead_db() to be trappable always.

WordPress Trac noreply at wordpress.org
Thu Aug 17 02:04:33 UTC 2017


#41655: Enable dead_db() to be trappable always.
-------------------------+-----------------------------
 Reporter:  gitlost      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Database     |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41655>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list