In admin views, specify a response code of 500 when using `wp_die()` to show an expanded message for a broken or missing multisite installation. On front end views, use `dead_db()` rather than `die()` to generate the generic "Error establishing a database connection" message. `dead_db()` sets a status code of 500 by default and allows for the override of this generic error with a `db-error.php` template. Props craig-ralston, jeremyfelt. Fixes #30002. Built from https://develop.svn.wordpress.org/trunk@31657 git-svn-id: http://core.svn.wordpress.org/trunk@31638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
15 KiB
15 KiB