Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit aa020aa

Browse files
committed
Add more explanation
1 parent 45d02a7 commit aa020aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

WordPressAuthenticator/Unified Auth/View Related/Site Address/SiteAddressViewController.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,9 @@ private extension SiteAddressViewController {
503503
// this causes the value of `loginFields.siteAddress` to be reset to what the user entered.
504504
//
505505
// Using the user-entered `loginFields.siteAddress` causes problems when we try to log
506-
// the user in. For example, validating their self-hosted site credentials somehow
507-
// fails. Especially if they only entered the domain (no url scheme).
506+
// the user in especially if they just use a domain. For example, validating their
507+
// self-hosted site credentials fails because the
508+
// `WordPressOrgXMLRPCValidator.guessXMLRPCURLForSite` expects a complete site URL.
508509
//
509510
// This routine fixes that problem. We'll use what we already validated from
510511
// `fetchSiteInfo()`.

0 commit comments

Comments
 (0)