Commit e61736e
authored
Add a database name fallback for early adopters of the new driver (#226)
The experimental new SQLite driver requires a database name to be set,
while the old one doesn't.
There are some scenarios in which the `DB_NAME` constant is missing in
`wp-config.php`. To enable easier early adoption and testing before
version 3.0, we're adding a default database name in case the `DB_NAME`
constant is not set.
Since the provided database name is now verified against the existing
database, this should be a safe change.1 parent 977a813 commit e61736e
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
58 | 73 | | |
59 | 74 | | |
60 | 75 | | |
| |||
64 | 79 | | |
65 | 80 | | |
66 | 81 | | |
67 | | - | |
| 82 | + | |
68 | 83 | | |
69 | | - | |
| 84 | + | |
70 | 85 | | |
71 | 86 | | |
72 | 87 | | |
| |||
0 commit comments