File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 return ;
1515}
1616
17- // @TODO: Remove before merging
18- define ( 'SQLITE_DEBUG_CROSSCHECK ' , false );
19- error_reporting ( E_ALL & ~E_DEPRECATED );
20-
2117if ( ! extension_loaded ( 'pdo ' ) ) {
2218 wp_die (
2319 new WP_Error (
5450require_once __DIR__ . '/class-wp-sqlite-db.php ' ;
5551require_once __DIR__ . '/install-functions.php ' ;
5652
53+ /*
54+ * Debug: Cross-check with MySQL.
55+ * This is for debugging purpose only and requires files
56+ * that are present in the GitHub repository
57+ * but not the plugin published on WordPress.org.
58+ */
5759$ crosscheck_tests_file_path = dirname ( dirname ( __DIR__ ) ) . '/tests/class-wp-sqlite-crosscheck-db.php ' ;
5860if ( defined ( 'SQLITE_DEBUG_CROSSCHECK ' ) && SQLITE_DEBUG_CROSSCHECK && file_exists ( $ crosscheck_tests_file_path ) ) {
5961 require_once $ crosscheck_tests_file_path ;
Original file line number Diff line number Diff line change @@ -64,6 +64,12 @@ function sqlite_make_db_sqlite() {
6464 }
6565 }
6666
67+ /*
68+ * Debug: Cross-check with MySQL.
69+ * This is for debugging purpose only and requires files
70+ * that are present in the GitHub repository
71+ * but not the plugin published on WordPress.org.
72+ */
6773 if ( defined ( 'SQLITE_DEBUG_CROSSCHECK ' ) && SQLITE_DEBUG_CROSSCHECK ) {
6874 $ host = DB_HOST ;
6975 $ port = 3306 ;
You can’t perform that action at this time.
0 commit comments