| @@ -1,6 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +defined( 'ABSPATH' ) || exit; | |
| 4 | + | |
| 5 | + | |
| 3 | 6 | class Dfrapi_Image_Uploader { |
| 4 | 7 | |
| 5 | 8 | /** |
| 6 | 9 | * @var Dfrapi_Image_Data $image_data |
| @@ -199,9 +202,8 @@ | ||
| 199 | 202 | |
| 200 | 203 | $custom_args = [ |
| 201 | 204 | 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0', |
| 202 | 205 | 'stream' => true, |
| 203 | - 'sslverify' => false, | |
| 204 | 206 | ]; |
| 205 | 207 | |
| 206 | 208 | $custom_args = apply_filters( |
| 207 | 209 | 'dfrapi_image_uploader_custom_http_request_args', |