From 3ca31d04db28652977aebe1e846b78eed7da58c7 Mon Sep 17 00:00:00 2001 From: root <root@rivolta.investici.org> Date: Sun, 10 Apr 2011 15:17:54 +0000 Subject: [PATCH] tolte modifiche che permettono il funzionamento di nextgen-gallery --- wp-content/db.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-content/db.php b/wp-content/db.php index f819e2250..18d53a1bf 100644 --- a/wp-content/db.php +++ b/wp-content/db.php @@ -313,6 +313,12 @@ class hyperdb extends wpdb { . ')\W([\w-]+)\W/is', $q, $maybe) ) return $maybe[1]; + // SHOW TABLES LIKE (used in some plugins) + if ( preg_match('/^\s*' + . 'SHOW\s+TABLES\s+LIKE\s+' + . '\W(\w+)\W/is', $q, $maybe) ) + return $maybe[1]; + // Big pattern for the rest of the table-related queries in MySQL 5.0 if ( preg_match('/^\s*(?:' . '(?:EXPLAIN\s+(?:EXTENDED\s+)?)?SELECT.*?\s+FROM' -- GitLab