*/
function get_page( $url, $username = '', $password = '', $head = false ) {
// Increase the timeout
- add_filter( 'http_request_timeout', array( &$this, 'bump_request_timeout' ) );
+ add_filter( 'http_request_timeout', array( $this, 'bump_request_timeout' ) );
$headers = array();
$args = array();
$args['headers'] = $headers;
- return wp_remote_request( $url, $args );
+ return wp_safe_remote_request( $url, $args );
}
/**