Fix errors in wppost addon

pull/1581/head^2^2
Art4 2024-11-30 20:36:58 +00:00 committed by Hypolite Petovan
parent 2f89827dea
commit a71db771d9
1 changed files with 3 additions and 1 deletions

View File

@ -259,9 +259,11 @@ EOT;
Logger::debug('wppost: data: ' . $xml);
$x = '';
if ($wp_blog !== 'test') {
$x = DI::httpClient()->post($wp_blog, $xml)->getBodyString();
}
Logger::info('posted to wordpress: ' . (($x) ? $x : ''));
Logger::info('posted to wordpress: ' . $x);
}
}