| @@ -74,10 +74,10 @@ | ||
| 74 | 74 | * |
| 75 | 75 | * When the plugin gets merged in wp-core, this is not to be ported. |
| 76 | 76 | */ |
| 77 | 77 | function sqlite_plugin_copy_db_file() { |
| 78 | - // Bail early if the SQLite3 class does not exist. | |
| 79 | - if ( ! class_exists( 'SQLite3' ) ) { | |
| 78 | + // Bail early if the PDO SQLite extension is not loaded. | |
| 79 | + if ( ! extension_loaded( 'pdo_sqlite' ) ) { | |
| 80 | 80 | return; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | $destination = WP_CONTENT_DIR . '/db.php'; |