Skip to content

Commit dc18b26

Browse files
committed
add files to .gitattributes
1 parent f93fb03 commit dc18b26

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
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

wp-includes/sqlite/db.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
require_once __DIR__ . '/class-wp-sqlite-pdo-engine.php';
5656
require_once __DIR__ . '/class-wp-sqlite-object-array.php';
5757
require_once __DIR__ . '/class-wp-sqlite-db.php';
58-
require_once __DIR__ . '/class-wp-sqlite-crosscheck-db.php';
5958
require_once __DIR__ . '/install-functions.php';
6059

61-
if ( defined( 'SQLITE_DEBUG_CROSSCHECK' ) && SQLITE_DEBUG_CROSSCHECK ) {
60+
if ( defined( 'SQLITE_DEBUG_CROSSCHECK' ) && SQLITE_DEBUG_CROSSCHECK && file_exists( __DIR__ . '/class-wp-sqlite-crosscheck-db.php' ) ) {
61+
require_once __DIR__ . '/class-wp-sqlite-crosscheck-db.php';
6262
$GLOBALS['wpdb'] = new WP_SQLite_Crosscheck_DB();
6363
} else {
6464
$GLOBALS['wpdb'] = new WP_SQLite_DB();

0 commit comments

Comments
 (0)