equal
deleted
inserted
replaced
193 * @param string $username |
193 * @param string $username |
194 * @param string $password |
194 * @param string $password |
195 * @param bool $head |
195 * @param bool $head |
196 * @return array |
196 * @return array |
197 */ |
197 */ |
198 public function get_page( $url, $username = '', $password = '', $head = false ) { |
198 public function get_page( |
|
199 $url, |
|
200 $username = '', |
|
201 #[\SensitiveParameter] |
|
202 $password = '', |
|
203 $head = false |
|
204 ) { |
199 // Increase the timeout. |
205 // Increase the timeout. |
200 add_filter( 'http_request_timeout', array( $this, 'bump_request_timeout' ) ); |
206 add_filter( 'http_request_timeout', array( $this, 'bump_request_timeout' ) ); |
201 |
207 |
202 $headers = array(); |
208 $headers = array(); |
203 $args = array(); |
209 $args = array(); |