Fix errors in wppost addon
parent
b6a47699bf
commit
15c21cebb1
|
@ -259,9 +259,11 @@ EOT;
|
||||||
|
|
||||||
Logger::debug('wppost: data: ' . $xml);
|
Logger::debug('wppost: data: ' . $xml);
|
||||||
|
|
||||||
|
$x = '';
|
||||||
|
|
||||||
if ($wp_blog !== 'test') {
|
if ($wp_blog !== 'test') {
|
||||||
$x = DI::httpClient()->post($wp_blog, $xml)->getBodyString();
|
$x = DI::httpClient()->post($wp_blog, $xml)->getBodyString();
|
||||||
}
|
}
|
||||||
Logger::info('posted to wordpress: ' . (($x) ? $x : ''));
|
Logger::info('posted to wordpress: ' . $x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue