Fix mysql_close() warning (and the connection not being closed) when $wp...

...db is using mysqli