Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function ( $result ) {
*/
function sqlite_plugin_copy_db_file() {
// Bail early if the PDO SQLite extension is not loaded.
if ( ! extension_loaded( 'pdo_sqlite' ) ) {
if ( ! extension_loaded( 'pdo_sqlite' ) && ! extension_loaded( 'sqlite3' ) ) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion admin-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function sqlite_plugin_admin_notice() {
}

// If PDO SQLite is not loaded, bail early.
if ( ! extension_loaded( 'pdo_sqlite' ) ) {
if ( ! extension_loaded( 'pdo_sqlite' ) && ! extension_loaded( 'sqlite3' ) ) {
printf(
'<div class="notice notice-error"><p>%s</p></div>',
esc_html__( 'The SQLite Integration plugin is active, but the PDO SQLite extension is missing from your server. Please make sure that PDO SQLite is enabled in your PHP installation.', 'sqlite-database-integration' )
Expand Down
2 changes: 1 addition & 1 deletion admin-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function sqlite_integration_admin_screen() {
);
?>
</p>
<?php elseif ( ! extension_loaded( 'pdo_sqlite' ) ) : ?>
<?php elseif ( ! extension_loaded( 'pdo_sqlite' ) && ! extension_loaded( 'sqlite3' ) ) : ?>
<div class="notice notice-error">
<p><?php esc_html_e( 'We detected that the PDO SQLite driver is missing from your server (the pdo_sqlite extension is not loaded). Please make sure that SQLite is enabled in your PHP installation before proceeding.', 'sqlite-database-integration' ); ?></p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/sqlite/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
);
}

if ( ! extension_loaded( 'pdo_sqlite' ) ) {
if ( ! extension_loaded( 'pdo_sqlite' ) && ! extension_loaded( 'sqlite3' ) ) {
wp_die(
new WP_Error(
'pdo_driver_not_loaded',
Expand Down
Loading