?Basic.php000064400000004755147335015070006316 0ustar00user, $this->pass) = $args; return; } if ($args !== null) { throw InvalidArgument::create(1, '$args', 'array|null', gettype($args)); } } /** * Register the necessary callbacks * * @see \WpOrg\Requests\Auth\Basic::curl_before_send() * @see \WpOrg\Requests\Auth\Basic::fsockopen_header() * @param \WpOrg\Requests\Hooks $hooks Hook system */ public function register(Hooks $hooks) { $hooks->register('curl.before_send', [$this, 'curl_before_send']); $hooks->register('fsockopen.after_headers', [$this, 'fsockopen_header']); } /** * Set cURL parameters before the data is sent * * @param resource|\CurlHandle $handle cURL handle */ public function curl_before_send(&$handle) { curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($handle, CURLOPT_USERPWD, $this->getAuthString()); } /** * Add extra headers to the request before sending * * @param string $out HTTP header string */ public function fsockopen_header(&$out) { $out .= sprintf("Authorization: Basic %s\r\n", base64_encode($this->getAuthString())); } /** * Get the authentication string (user:pass) * * @return string */ public function getAuthString() { return $this->user . ':' . $this->pass; } } error_log000064400000001623147335015070006470 0ustar00[25-Dec-2024 06:22:55 UTC] PHP Fatal error: Uncaught Error: Interface 'WpOrg\Requests\Auth' not found in /home/supercleanprojan/public_html/wp-includes/Requests/src/Auth/Basic.php:23 Stack trace: #0 {main} thrown in /home/supercleanprojan/public_html/wp-includes/Requests/src/Auth/Basic.php on line 23 [25-Dec-2024 10:17:39 UTC] PHP Fatal error: Uncaught Error: Interface 'WpOrg\Requests\Auth' not found in /home/supercleanprojan/public_html/wp-includes/Requests/src/Auth/Basic.php:23 Stack trace: #0 {main} thrown in /home/supercleanprojan/public_html/wp-includes/Requests/src/Auth/Basic.php on line 23 [25-Dec-2024 12:32:59 UTC] PHP Fatal error: Uncaught Error: Interface 'WpOrg\Requests\Auth' not found in /home/supercleanprojan/public_html/wp-includes/Requests/src/Auth/Basic.php:23 Stack trace: #0 {main} thrown in /home/supercleanprojan/public_html/wp-includes/Requests/src/Auth/Basic.php on line 23