We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d982450 commit 60eefc3Copy full SHA for 60eefc3
wp-includes/sqlite/class-wp-sqlite-db.php
@@ -6,6 +6,21 @@
6
* @since 1.0.0
7
*/
8
9
+/*
10
+ * A compatibility hotfix for the Wordfence plugin.
11
+ *
12
+ * Wordfence directly uses the $wpdb->dbh property, considering it an instance
13
+ * of mysqli, without checking if it really is. As a hotfix, we will disable
14
+ * the Wordfence mysqli usage using the WORDFENCE_ALLOW_DIRECT_MYSQLI constant.
15
16
+ * TODO: Remove this once the issue is resolved in Wordfence.
17
18
+ * See: https://github.com/WordPress/sqlite-database-integration/issues/284
19
+ */
20
+if ( ! defined( 'WORDFENCE_ALLOW_DIRECT_MYSQLI' ) ) {
21
+ define( 'WORDFENCE_ALLOW_DIRECT_MYSQLI', false );
22
+}
23
+
24
/**
25
* This class extends wpdb and replaces it.
26
*
0 commit comments