Changeset 50842 for trunk/src/wp-includes/Requests/Proxy/HTTP.php
- Timestamp:
- 05/11/2021 07:40:41 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Requests/Proxy/HTTP.php
r46586 r50842 60 60 } 61 61 elseif (is_array($args)) { 62 if (count($args) == 1) {62 if (count($args) === 1) { 63 63 list($this->proxy) = $args; 64 64 } 65 elseif (count($args) == 3) {65 elseif (count($args) === 3) { 66 66 list($this->proxy, $this->user, $this->pass) = $args; 67 $this->use_authentication = true;67 $this->use_authentication = true; 68 68 } 69 69 else { … … 83 83 * @param Requests_Hooks $hooks Hook system 84 84 */ 85 public function register(Requests_Hooks &$hooks) {86 $hooks->register('curl.before_send', array( &$this, 'curl_before_send'));85 public function register(Requests_Hooks $hooks) { 86 $hooks->register('curl.before_send', array($this, 'curl_before_send')); 87 87 88 $hooks->register('fsockopen.remote_socket', array( &$this, 'fsockopen_remote_socket'));89 $hooks->register('fsockopen.remote_host_path', array( &$this, 'fsockopen_remote_host_path'));88 $hooks->register('fsockopen.remote_socket', array($this, 'fsockopen_remote_socket')); 89 $hooks->register('fsockopen.remote_host_path', array($this, 'fsockopen_remote_host_path')); 90 90 if ($this->use_authentication) { 91 $hooks->register('fsockopen.after_headers', array( &$this, 'fsockopen_header'));91 $hooks->register('fsockopen.after_headers', array($this, 'fsockopen_header')); 92 92 } 93 93 }
Note: See TracChangeset
for help on using the changeset viewer.