You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7faedd0
Browse filesBrowse the repository at this point in the historyBrowse files
Use DB_PATH for storage initialization, database connections, installation,
and Site Health. Place storage locks beside the configured database.
Reject DB_PATH combined with DB_DIR, DB_FILE, FQDBDIR, or FQDB. Keep legacy
settings when DB_PATH is absent and deprecate the older constants.
Create WP_SQLite_Storage with with_secret_path() or with_explicit_path().
Each storage mode gets its own named constructor, and callers pass the
storage root instead of the class reading FQDBDIR.
Validate database paths in WP_SQLite_Storage before any file operations.
Require an absolute filesystem path, or :memory: for an explicit path. This
also rejects a relative DB_DIR or FQDBDIR, which resolved against the working
directory.
Cover mixed settings, default storage, legacy settings, in-memory databases,
and invalid paths and directories.
#502
'Your PHP installation appears to be missing the PDO extension which is required for this version of WordPress and the type of database you have specified.'
27
-
)
28
-
),
29
-
'PHP PDO Extension is not loaded.'
30
-
);
31
-
}
20
+
if ( ! extension_loaded( 'pdo' ) ) {
21
+
wp_die(
22
+
newWP_Error(
23
+
'pdo_not_loaded',
24
+
sprintf(
25
+
'<h1>%1$s</h1><p>%2$s</p>',
26
+
'PHP PDO Extension is not loaded',
27
+
'Your PHP installation appears to be missing the PDO extension which is required for this version of WordPress and the type of database you have specified.'
28
+
)
29
+
),
30
+
'PHP PDO Extension is not loaded.'
31
+
);
32
+
}
32
33
33
-
if ( ! extension_loaded( 'pdo_sqlite' ) ) {
34
-
wp_die(
35
-
newWP_Error(
36
-
'pdo_driver_not_loaded',
37
-
sprintf(
38
-
'<h1>%1$s</h1><p>%2$s</p>',
39
-
'PDO Driver for SQLite is missing',
40
-
'Your PHP installation appears not to have the right PDO drivers loaded. These are required for this version of WordPress and the type of database you have specified.'
41
-
)
42
-
),
43
-
'PDO Driver for SQLite is missing.'
44
-
);
45
-
}
34
+
if ( ! extension_loaded( 'pdo_sqlite' ) ) {
35
+
wp_die(
36
+
newWP_Error(
37
+
'pdo_driver_not_loaded',
38
+
sprintf(
39
+
'<h1>%1$s</h1><p>%2$s</p>',
40
+
'PDO Driver for SQLite is missing',
41
+
'Your PHP installation appears not to have the right PDO drivers loaded. These are required for this version of WordPress and the type of database you have specified.'
0 commit comments