PluginProbe
SQLite Database Integration / 2.2.0
SQLite Database Integration v2.2.0
3.0.2 3.0.1 trunk 2.1.13 2.1.14 2.1.15 2.1.16 2.2.0 2.2.1 2.2.10 2.2.11 2.2.12 2.2.13 2.2.14 2.2.15 2.2.16 2.2.17 2.2.18 2.2.19 2.2.2 2.2.20 2.2.21 2.2.22 2.2.23 2.2.3 All 32 releases
← All changes | wp-includes/sqlite/db.php +7 -2 2.1.142.2.0 View file →
@@ -5,8 +5,13 @@
5 5 * @package wp-sqlite-integration
6 6 * @since 1.0.0
7 7 */
8 8
9 +/**
10 + * Load the "SQLITE_DRIVER_VERSION" constant.
11 + */
12 +require_once dirname( __DIR__, 2 ) . '/version.php';
13 +
9 14 // Require the constants file.
10 15 require_once dirname( __DIR__, 2 ) . '/constants.php';
11 16
12 17 // Bail early if DB_ENGINE is not defined as sqlite.
@@ -58,8 +63,8 @@
58 63 */
59 64 $crosscheck_tests_file_path = dirname( __DIR__, 2 ) . '/tests/class-wp-sqlite-crosscheck-db.php';
60 65 if ( defined( 'SQLITE_DEBUG_CROSSCHECK' ) && SQLITE_DEBUG_CROSSCHECK && file_exists( $crosscheck_tests_file_path ) ) {
61 66 require_once $crosscheck_tests_file_path;
62 - $GLOBALS['wpdb'] = new WP_SQLite_Crosscheck_DB();
67 + $GLOBALS['wpdb'] = new WP_SQLite_Crosscheck_DB( DB_NAME );
63 68 } else {
64 - $GLOBALS['wpdb'] = new WP_SQLite_DB();
69 + $GLOBALS['wpdb'] = new WP_SQLite_DB( DB_NAME );
65 70 }