The wpdb constructor makes some queries (e.g. for SQL_MODE) which are rewritten. This occurs before the constructor returns and therefore before the $wpdb global is set. Handle this without errors. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
The wpdb constructor makes some queries (e.g. for SQL_MODE) which are rewritten. This occurs before the constructor returns and therefore before the $wpdb global is set. Handle this without errors. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>