use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
+use Friendica\Util\Network;
function wppost_install() {
Addon::registerHook('post_local', 'addon/wppost/wppost.php', 'wppost_post_local');
logger('wppost: data: ' . $xml, LOGGER_DATA);
- if($wp_blog !== 'test') {
- $x = post_url($wp_blog,$xml);
+ if ($wp_blog !== 'test') {
+ $x = Network::post($wp_blog, $xml);
}
logger('posted to wordpress: ' . (($x) ? $x : ''), LOGGER_DEBUG);
-
}
}