Plugin Directory

Changeset 2327378


Ignore:
Timestamp:
06/19/2020 10:36:07 AM (6 years ago)
Author:
cheryukin
Message:

update file class-emtapi.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emailtools/trunk/includes/class-emtapi.php

    r2306753 r2327378  
    3737            'body' => $param,
    3838            'timeout' => $this->timeout,
     39            'sslverify' => false
    3940        );
    4041       
    4142        $response = wp_remote_post( $this->tracker_url, $post_args );
    4243        $response_body = wp_remote_retrieve_body( $response );
     44        if ( is_wp_error( $response ) ) {
     45            $error_message = $response->get_error_message();
     46            echo "Что-то пошло не так: $error_message";
     47        }
    4348       
    4449        return $response_body;
Note: See TracChangeset for help on using the changeset viewer.