Skip to content

Commit 12747f4

Browse files
committed
Move files
1 parent 11c3a9a commit 12747f4

7 files changed

Lines changed: 4 additions & 4 deletions

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
.gitignore export-ignore
55
composer.json export-ignore
66
phpcs.xml.dist export-ignore
7-
lexer-explorations/*.php export-ignore
8-
wp-includes/sqlite/class-wp-sqlite-crosscheck-db.php export-ignore
7+
tests/*.php export-ignore
File renamed without changes.

lexer-explorations/WP_SQLite_PDO_User_Defined_Functions_Tests.php renamed to tests/WP_SQLite_PDO_User_Defined_Functions_Tests.php

File renamed without changes.
File renamed without changes.

wp-includes/sqlite/db.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@
5656
require_once __DIR__ . '/class-wp-sqlite-db.php';
5757
require_once __DIR__ . '/install-functions.php';
5858

59-
if ( defined( 'SQLITE_DEBUG_CROSSCHECK' ) && SQLITE_DEBUG_CROSSCHECK && file_exists( __DIR__ . '/class-wp-sqlite-crosscheck-db.php' ) ) {
60-
require_once __DIR__ . '/class-wp-sqlite-crosscheck-db.php';
59+
$crosscheck_tests_file_path = dirname( dirname( __DIR__ ) ) . '/tests/class-wp-sqlite-crosscheck-db.php';
60+
if ( defined( 'SQLITE_DEBUG_CROSSCHECK' ) && SQLITE_DEBUG_CROSSCHECK && file_exists( $crosscheck_tests_file_path ) ) {
61+
require_once $crosscheck_tests_file_path;
6162
$GLOBALS['wpdb'] = new WP_SQLite_Crosscheck_DB();
6263
} else {
6364
$GLOBALS['wpdb'] = new WP_SQLite_DB();

0 commit comments

Comments
 (0)