Opened 19 years ago
Closed 19 years ago
#5128 closed defect (bug) (fixed)
setup-config.php should check for existence of db.php
| Reported by: | ComputerGuru | Owned by: | westi |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | General | Version: | 2.3 |
| Severity: | normal | Keywords: | db.php has-patch 2nd-opinion |
| Cc: | Focuses: |
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 (2)
Change History (9)
#3
@
19 years ago
- 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?
#4
@
19 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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Adding to my review and checkin todo list