Returns ping response body instead of boolean
This commit is contained in:
@@ -61,7 +61,7 @@ class CronHelper {
|
||||
'user-agent' => 'MailPoet (www.mailpoet.com) Cron'
|
||||
);
|
||||
$result = wp_remote_get($url, $args);
|
||||
return wp_remote_retrieve_body($result) === 'pong';
|
||||
return wp_remote_retrieve_body($result);
|
||||
}
|
||||
|
||||
static function accessDaemon($token, $timeout = self::DAEMON_REQUEST_TIMEOUT) {
|
||||
|
Reference in New Issue
Block a user