[wp-trac] [WordPress Trac] #30002: ms_not_installed returns 200

WordPress Trac noreply at wordpress.org
Sat Mar 7 05:34:50 UTC 2015

#30002: ms_not_installed returns 200
 Reporter:  spacedmonkey              |       Owner:  craig-ralston
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  4.2
Component:  Networks and Sites        |     Version:  4.0
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  multisite
Changes (by jeremyfelt):

 * status:  assigned => closed
 * resolution:   => fixed


 In [changeset:"31657"]:
 #!CommitTicketReference repository="" revision="31657"
 Return HTTP status code 500 by default in ms_not_installed()

 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.

Ticket URL: <https://core.trac.wordpress.org/ticket/30002#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list