--- a/wp/wp-includes/Requests/Auth/Basic.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/Requests/Auth/Basic.php Wed Sep 21 18:19:35 2022 +0200
@@ -53,9 +53,9 @@
* @see fsockopen_header
* @param Requests_Hooks $hooks Hook system
*/
- public function register(Requests_Hooks &$hooks) {
- $hooks->register('curl.before_send', array(&$this, 'curl_before_send'));
- $hooks->register('fsockopen.after_headers', array(&$this, 'fsockopen_header'));
+ public function register(Requests_Hooks $hooks) {
+ $hooks->register('curl.before_send', array($this, 'curl_before_send'));
+ $hooks->register('fsockopen.after_headers', array($this, 'fsockopen_header'));
}
/**
@@ -85,4 +85,4 @@
public function getAuthString() {
return $this->user . ':' . $this->pass;
}
-}
\ No newline at end of file
+}