Repository navigation
Commit 7cf6b93
authored
Fix activation with Query Monitor 4.1.2 (#642)
## Summary
Fixes plugin activation with **Query Monitor 4.1.2**. The SQLite
integration now loads Query Monitor's new `autoload.php` so it can start
recording database queries early. Older releases continue to use
Composer's `vendor/autoload.php`.
## Why
Query Monitor 4.1.2 removed both its bundled Composer autoloader and the
`QM_PHP::vendor_nope` notice. The SQLite integration treated the missing
Composer file as an incomplete install and registered the removed
callback. WordPress then tried to call it when rendering the Plugins
screen after activation. [Query Monitor
changes](johnbillion/query-monitor@4.1.1...4.1.2)
· [Failing end-to-end test on
trunk](https://github.com/WordPress/sqlite-database-integration/actions/runs/45997026427)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
- **Bug Fixes**
- Improved Query Monitor compatibility across installations by using an
available autoloader, including support for older setups.
- Avoided registering a missing-autoloader notice when its handler is
unavailable.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 758da32 commit 7cf6b93
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
158 | 165 | | |
159 | 166 | | |
160 | 167 | | |
161 | | - | |
162 | | - | |
163 | 168 | | |
164 | 169 | | |
165 | 170 | | |
| |||
0 commit comments