-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
243,616 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,3 @@ package: update_core_phpunit_includes test | |
|
||
update_sqlite_plugin: | ||
bin/update_sqlite_plugin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/includes/sqlite-database-integration/db.copy b/includes/sqlite-database-integration/db.copy | ||
index 0b0797e8..23caff78 100644 | ||
--- a/includes/sqlite-database-integration/db.copy | ||
+++ b/includes/sqlite-database-integration/db.copy | ||
@@ -32,6 +32,17 @@ if ( ! defined( 'DATABASE_TYPE' ) ) { | ||
if ( ! defined( 'DB_ENGINE' ) ) { | ||
define( 'DB_ENGINE', 'sqlite' ); | ||
} | ||
+// Define SQLite main file constant to avoid having the plugin loaded automatically. | ||
+if ( ! defined( 'SQLITE_MAIN_FILE' ) ) { | ||
+ define( 'SQLITE_MAIN_FILE', '{SQLITE_MAIN_FILE}' ); | ||
+} | ||
+// Define DB_DIR and DB_FILE from env, if not already defined. | ||
+if( ! defined( 'DB_DIR' ) && getenv( 'DB_DIR' ) ) { | ||
+ define( 'DB_DIR', realpath( getenv( 'DB_DIR' ) ) ); | ||
+} | ||
+if( ! defined( 'DB_FILE' ) && getenv( 'DB_FILE' ) ) { | ||
+ define( 'DB_FILE', getenv( 'DB_FILE' ) ); | ||
+} | ||
|
||
// Require the implementation from the plugin. | ||
require_once $sqlite_plugin_implementation_folder_path . '/wp-includes/sqlite/db.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.