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