Skip to content

Commit 5c2265e

Browse files
committed
Support the Query Monitor integration in Playground
1 parent d20bacc commit 5c2265e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

integrations/query-monitor/boot.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
* See: https://github.com/johnbillion/query-monitor/blob/develop/wp-content/db.php
1313
*/
1414

15+
/*
16+
* In Playground, the SQLite plugin is preloaded without using the "db.php" file.
17+
* To prevent Query Monitor from injecting its own "db.php" file, we need to set
18+
* the "QM_DB_SYMLINK" constant to "false".
19+
*/
20+
if ( ! defined( 'QM_DB_SYMLINK' ) ) {
21+
define( 'QM_DB_SYMLINK', false );
22+
}
23+
1524
// 1. Check if we should load Query Monitor (as per the original "db.php" file).
1625
if ( ! defined( 'ABSPATH' ) ) {
1726
exit;

0 commit comments

Comments
 (0)