%1$s
%2$s
', 'PHP PDO Extension is not loaded', '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.' ) ), 'PHP PDO Extension is not loaded.' ); } if ( ! extension_loaded( 'pdo_sqlite' ) ) { wp_die( new WP_Error( 'pdo_driver_not_loaded', sprintf( '%2$s
', 'PDO Driver for SQLite is missing', '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.' ) ), 'PDO Driver for SQLite is missing.' ); } require_once __DIR__ . '/class-wp-sqlite-lexer.php'; require_once __DIR__ . '/class-wp-sqlite-query-rewriter.php'; require_once __DIR__ . '/class-wp-sqlite-translator.php'; require_once __DIR__ . '/class-wp-sqlite-token.php'; require_once __DIR__ . '/class-wp-sqlite-pdo-user-defined-functions.php'; require_once __DIR__ . '/class-wp-sqlite-db.php'; require_once __DIR__ . '/install-functions.php'; /* * Debug: Cross-check with MySQL. * This is for debugging purpose only and requires files * that are present in the GitHub repository * but not the plugin published on WordPress.org. */ $crosscheck_tests_file_path = dirname( __DIR__, 2 ) . '/tests/class-wp-sqlite-crosscheck-db.php'; if ( defined( 'SQLITE_DEBUG_CROSSCHECK' ) && SQLITE_DEBUG_CROSSCHECK && file_exists( $crosscheck_tests_file_path ) ) { require_once $crosscheck_tests_file_path; $GLOBALS['wpdb'] = new WP_SQLite_Crosscheck_DB(); } else { $GLOBALS['wpdb'] = new WP_SQLite_DB(); }