From: Friendika Date: Thu, 8 Sep 2011 04:33:54 +0000 (-0700) Subject: add title X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2bf19ae652694f69f3a200e58a6e1acebbe41584;p=friendica-addons.git add title --- diff --git a/wppost.tgz b/wppost.tgz index d18ed64f..d79d411b 100644 Binary files a/wppost.tgz and b/wppost.tgz differ diff --git a/wppost/wppost.php b/wppost/wppost.php index 479ad6f1..9aac6c38 100644 --- a/wppost/wppost.php +++ b/wppost/wppost.php @@ -136,7 +136,10 @@ function wppost_send(&$a,&$b) { if($wp_username && $wp_password && $wp_blog && $wp_post && $wp_enable) { require_once('include/bbcode.php'); - $post = xmlify(bbcode($b['body'])); + + $post = (($b['title']) ? '' . $b['title'] . '' : ''); + $post .= bbcode($b['body']); + $post = xmlify($post); $xml = <<< EOT