Update to the function which determines the "top level domain".

This change supports multisite installations which utilize domain mapping; avoids unintended redirects for legitimate POSTs on a mapped domain's wp-login.php page.