Skip to content

Commit f6ed9dc

Browse files
committed
Fix: Remove over-broad INFORMATION_SCHEMA.TABLES interception to fix Site Health tests
1 parent 70fc689 commit f6ed9dc

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • integrations/plugin-compatibility

integrations/plugin-compatibility/boot.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@ function wp_sqlite_integration_plugin_compat( $query ) {
2121
return $query;
2222
}
2323

24-
// 1. Intercept information_schema queries (common in caching plugins) and short-circuit.
25-
// Since many plugins attempt to verify table existence using information_schema directly,
26-
// rendering them obsolete or failing in SQLite, we fake the query.
27-
if ( stripos( $query, 'information_schema.tables' ) !== false ) {
28-
return 'SELECT 1 WHERE 1=0';
29-
}
24+
// 1. Intercept known problematic queries and short-circuit if necessary.
25+
// (Previously intercepted information_schema, but that broke WordPress Core Site Health).
3026

3127
// 2. Global fallback for FOR UPDATE / SKIP LOCKED / NOWAIT.
3228
// This ensures the legacy driver natively ignores these locking constraints where SQLite faults.

0 commit comments

Comments
 (0)