fix for mySQLi implementation in WP