[wp-trac] [WordPress Trac] #29794: Function is_blog_installed returns database connection error if "siteurl" is empty

WordPress Trac noreply at wordpress.org
Thu Dec 4 04:57:40 UTC 2014


#29794: Function is_blog_installed returns database connection error if "siteurl"
is empty
----------------------------+------------------------------
 Reporter:  danielkanchev   |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:  2.9
 Severity:  normal          |  Resolution:
 Keywords:  close           |     Focuses:
----------------------------+------------------------------
Changes (by jeremyfelt):

 * keywords:  2nd-opinion => close
 * version:  trunk => 2.9


Comment:

 Thanks for the report, @danelkanchev.

 Before [11902] in 2.9, it looks like we would actually not throw any
 error, but that a new installation screen would appear. The check for
 `siteurl` has existed as the method for determining if a site has been
 installed since [3670], probably because that is the first (most
 important?) option added.

 I think it makes sense that we keep the "terse" error on the front end. If
 a site owner visits `wp-admin/`, they'll see a more descriptive message.
 It is strange that the database repair does not restore a `siteurl` value.
 It looks like this is covered by #10970 via #11394. It probably makes
 sense to close this ticket in favor of that.

 It's also worth noting that a custom `db-error.php` template can be used
 to change this experience.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29794#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list