We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11e51be commit 7b1469aCopy full SHA for 7b1469a
1 file changed
integrations/query-monitor/boot.php
@@ -121,12 +121,16 @@ function register_sqlite_enhancements_for_query_monitor() {
121
122
$query_monitor_active = false;
123
try {
124
- $value = $wpdb->get_row(
+ // Make sure no errors are displayed when the query fails.
125
+ $show_errors = $wpdb->hide_errors();
126
+ $value = $wpdb->get_row(
127
$wpdb->prepare(
128
"SELECT option_value FROM $wpdb->options WHERE option_name = %s LIMIT 1",
129
'active_plugins'
130
)
131
);
132
+ $wpdb->show_errors( $show_errors );
133
+
134
if ( null !== $value ) {
135
$query_monitor_active = in_array(
136
'query-monitor/query-monitor.php',
0 commit comments