Skip to content

Commit

Permalink
Bug fix. $this in static method. See: wpsharks/comment-mail#265
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswsinc committed Nov 10, 2016
1 parent f1c2fbc commit 526342a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/includes/classes/RveSparkPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public static function setupWebhook()
esc_html(NAME),
esc_html(!empty($api_response->errors[0]->message) ? $api_response->errors[0]->message : __('Unknown API error.', SLUG_TD))
);
$this->enqueueWarning($markup);
$plugin->enqueueWarning($markup);
return; // Not possible.
}
$wp_remote_response = wp_remote_request('https://api.sparkpost.com/api/v1/relay-webhooks', [
Expand Down Expand Up @@ -298,7 +298,7 @@ public static function setupWebhook()
esc_html(NAME),
esc_html(!empty($api_response->errors[0]->message) ? $api_response->errors[0]->message : __('Unknown API error.', SLUG_TD))
);
$this->enqueueWarning($markup);
$plugin->enqueueWarning($markup);
return; // Not possible.
}
if (is_object($api_response) && !empty($api_response->results->id)) {
Expand Down

0 comments on commit 526342a

Please sign in to comment.