If this function is unable to reconnect, it will forcibly die, or if after the
the template_redirect hook has been fired, return false instead.
If $allow_bail is false, the lack of database connection will need
to be handled manually.
public check_connection ( boolean $allow_bail = true ) : boolean | ||
$allow_bail | boolean | Optional. Allows the function to bail. Default true. |
return | boolean | True if the connection is up. |