Commit 48f1123
committed
Add a database name fallback for early adopters of the new driver
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 48f1123
1 file changed
Lines changed: 16 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 | + | |
58 | 72 | | |
59 | 73 | | |
60 | 74 | | |
| |||
64 | 78 | | |
65 | 79 | | |
66 | 80 | | |
67 | | - | |
| 81 | + | |
68 | 82 | | |
69 | | - | |
| 83 | + | |
70 | 84 | | |
71 | 85 | | |
72 | 86 | | |
| |||
0 commit comments