equal
deleted
inserted
replaced
49 |
49 |
50 if ( ! empty( $this->headers ) ) { |
50 if ( ! empty( $this->headers ) ) { |
51 $args['headers'] = $this->headers; |
51 $args['headers'] = $this->headers; |
52 } |
52 } |
53 |
53 |
54 if ( SIMPLEPIE_USERAGENT != $this->useragent ) { //Use default WP user agent unless custom has been specified |
54 if ( SIMPLEPIE_USERAGENT != $this->useragent ) { // Use default WP user agent unless custom has been specified. |
55 $args['user-agent'] = $this->useragent; |
55 $args['user-agent'] = $this->useragent; |
56 } |
56 } |
57 |
57 |
58 $res = wp_safe_remote_request( $url, $args ); |
58 $res = wp_safe_remote_request( $url, $args ); |
59 |
59 |