Opened 17 years ago
Closed 17 years ago
#5128 closed defect (bug) (fixed)
setup-config.php should check for existence of db.php
Reported by: | ComputerGuru | Owned by: | westi |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | General | Keywords: | db.php has-patch 2nd-opinion |
Focuses: | Cc: |
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
@
17 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
@
17 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.
Adding to my review and checkin todo list