wp-includes/PHPMailer/POP3.php:200Authenticate with a POP3 server.
$hoststring$portint|booloptionalfalse$timeoutint|booloptionalfalse$usernamestringoptional''$passwordstringoptional''$debug_levelintoptional0bool public function authorise($host, $port = false, $timeout = false, $username = '', $password = '', $debug_level = 0) { $this->host = $host; //If no port value provided, use default if (false === $port) { $this->port = static::DEFAULT_PORT; } else { $this->port = (int) $port; } //If no timeout value provided, use default if (false === $timeout) { $this->tval = static::DEFAULT_TIMEOUT; } else { $this->tval = (int) $timeout; } $this->do_debug = (int) $debug_level; $this->username = self::stripControls($username); $this->password = self::stripControls($password); //Reset the error log $this->errors = []; //Connect $result = $this->connect($this->host, $this->port, $this->tval); if ($result) { $login_result = $this->login($this->username, $this->password); if ($login_result) { $this->disconnect(); return true; } } //We need to disconnect regardless of whether the login succeeded $this->disconnect(); return false; }Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.
src/wp-includes/PHPMailer/POP3.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.