Commit 1dc9eec
authored
[Query monitor] Tolerate null $value in boot.php (#219)
PR #217 added a line `global $wpdb` to
`integration/query-monitor/boot.php` which triggered this warning in
WordPress Playground multisite tests:
```
+ <b>Warning</b>: Attempt to read property "option_value" on null in <b>/internal/shared/sqlite-database-integration/integrations/query-monitor/boot.php</b> on line <b>80</b><br />
```
Removing either `global $wpdb` or guarding against a null `$value`
solves the failure. I assume there's a reason for adding `global $wpdb`
so, in this PR, I'm adding a guard against a null value.1 file changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| |||
0 commit comments