Ticket #5128 (closed defect (bug): fixed)
setup-config.php should check for existence of db.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | General | Version: | 2.3 |
| Severity: | normal | Keywords: | db.php has-patch 2nd-opinion |
| Cc: | ComputerGuru@… |
Description
wp-admin/setup-config.php should check for wp-content/db.php and load that if it exists instead of blindly loading wp-db.php. Searching for db.php first is the correct behavior as can be seen in wp-settings.php
Attachments
Change History
- Keywords has-patch added
- Version set to 2.3
- Milestone changed from 2.3.1 to 2.4
- Owner changed from anonymous to westi
- Status changed from new to assigned
Adding to my review and checkin todo list
- Keywords 2nd-opinion added
I've added a new patch which moves the common code to a new function instead of duplicating it.
What does everyone think?
comment:4
ComputerGuru — 4 years ago
Looks good to me :-)
I was originally planning on adding a check in the actual wp-db.php at the very top, which would load the alternate db.php if it exists; but I felt it was a bit ugly of a hack.. A function is a nice compromise.
- Status changed from assigned to closed
- Resolution set to fixed
- Status changed from closed to reopened
- Resolution fixed deleted
Arg.. the change went into the wrong place.
Note: See
TracTickets for help on using
tickets.

